Log in

No account? Create an account
Does OpenStreetMap know where I am? - Nick [entries|archive|friends|userinfo]

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Does OpenStreetMap know where I am? [Jul. 30th, 2006|07:33 pm]
Last week, I knocked up a little script to use Planet.osm (the monthly dump of OpenStreetMap). Today, I've been extending it to do more cool stuff.

The idea of the script is that you tell it a latitude and longitude (eg as found from your GPS). It goes off, queries the OSM database, and finds interesting things near to where you are. It then returns these to you, in a few formats (html, xml or osm)

Here's the first example: what places is my house near?

And the next: what roads is my house near?

And finally: what petrol stations is my house near?

If you want to have a play, just go to the main script URL (http://gagravarr.org/cgi-bin/where_am_i.py) and tap in some lats and longs. Hopefully as more of the OSM data is tagged, this will become even more useful.