Hi My goal is to get a list of all possible colonies/neighborhoods for particular indian city along with their coordinates. I plan to fetch this data from openstreetmap (if its allowed) once, and then use it on my own site. Is there a way to fetch this data from OSM ? I tried looking through the xapi documentation, but didn't understand whether OSM xapi can do what I want. Thanks Edit: I tried this command to import into a database, but its not working. Can someone tell me whats wrong? osmosis --read-xml file="NewDelhi.osm" --write-apidb host="localhost" dbType="mysql" database="os" user= "root" asked 28 May '12, 06:58 goddamnit |
Taking an example of "Lajpat Nagar", which is one of those that you highlighted, I:
There we can see that it's a "place=suburb" (and we can see its coordinates). If you want to extract multiple suburbs from an area you can use one of the options on the XAPI page. An XAPI query using Mapquest's instance would be something like this:
That fetches back a .OSM XML file - if you open that in a text editor you can figure out what's what. Similarly, we can see that the Asiad Games Sports Complex is a "leisure=sports_centre". This one's a little more complex because it's a closed way (an area) - you can click on each node to get a series of coordinates of the outside of it, and if you do an XAPI query you'll get the way and constituent nodes. A quick way to figure out the coordinates you need for the XAPI is to click the "Export" tab on the OSM map and size the window to cover the area you want - then just copy the values from the export pane. answered 29 May '12, 16:49 SomeoneElse ♦ Thanks so much for answering, I'll try this method asap!
(29 May '12, 17:38)
goddamnit
|
Maybe I should try explaining my question again: All I want is the lat/long of the places in the marked circles:
Please someone just give me a kick in the right direction please. Thanks