Hi to all, I want to get geojson value for a region(city/state/country). I tried as http://nominatim.openstreetmap.org/search?q=chennai,India&polygon_geojson=1&format=json&limit=1 But it did not give geojson(return geojson for few regions only). If I remove limit, http://nominatim.openstreetmap.org/search?q=chennai,India&polygon_geojson=1&format=json It will return multiple values, geojson also available for type = administrative. So Now i want to a single API for get geojson for a region with type=adminstrative. Any suggestions? Thanks Rajavelu asked 30 Jun '15, 08:22 Rajavelu_M |
For smallish areas use Overpass-Turbo. The client side code in Overpass-Turbo enables the queried OSM data to saved directly as geojson. Once the data gets too big you run into problems both with server-side timeouts (and potentially blocks), and/or client-side memory issues. This is an example of a simple Overpass-Turbo query for admin units around Chennai. It can be refined by asking only for certain levels of admin units, and by using the area feature to restrict the request to a specific polygon. answered 30 Jun '15, 10:30 SK53 ♦ |