Where Are They
Jump to navigation
Jump to search
This article or section may contain out-of-date information. The information may no longer be correct, or may no longer have relevance.
If you know about the current state of affairs, please help keep everyone informed by updating this information. (Discussion)
If you know about the current state of affairs, please help keep everyone informed by updating this information. (Discussion)
These are a number of planet.osm-powered scripts, written in Python. Source code is available from svn under /applications/utils/where_are_they/. (They used to be at http://gagravarr.org/code/)
They support outputting to a number of formats:
- HTML (default)
- XML (very simple format)
- OSM
- GPX (Garmin waypoint format)
Where Am I?
http://gagravarr.org/cgi-bin/where_am_i.py
Allows you to find nodes (of certain types), places or roads near a given location.
Takes four required arguments:
- lat - the latitude (decimal)
- long - the longitude (decimal)
- dist - search bbox radius (in meters)
- format - see above
And then one of:
- places - the nearby places
- roads - the nearby (main) roads
- node_type - nodes of the given type (eg place)
- node_type + node_value - nodes of the given type and value (eg amenity + pub)
Example URLs
- http://gagravarr.org/cgi-bin/where_am_i.py?lat=51.858238&long=-1.480533&dist=7500&node_type=amenity&node_value=pub - Pubs near Charlbury
- http://gagravarr.org/cgi-bin/where_am_i.py?lat=51.721033333&long=-1.238533333&dist=50000&places - Places near south Oxford
- http://gagravarr.org/cgi-bin/where_am_i.py?lat=51.721033333&long=-1.238533333&dist=500&roads - Main Roads near south Oxford
Interesting URLs
These may be of wider use, and should be collected below.
Where Is It?
http://gagravarr.org/cgi-bin/where_is_it.py
Allows you to locate places by their name, providing a basic OSM powered gazetter service.
Takes three arguments:
- place - the (case sensitive) name of the place you want to find, eg Iffley
- type - a comma separated list of kinds of places to search (from Map Features), eg type=town,city
- format - see above
Examples: