Can I search for a country states(admin level=4) in Viewport via nominatim search? this search return all states in a country. but only if display_name like "District". there is a way to filter results and get only places admin_level=4 ? Thanks! |
You might want to use the bbox operator but there is AFAIK no operator to restrict the admin_level: So either you are able to prefilter your query by adjusting the state,country, ... addresses or you may use the Overpass API instead answered 02 Jan '14, 15:38 iii Thanks! the problem is that Overpass API is too slow
(02 Jan '14, 15:49)
Izikb
1
Hmm Qverpass API is one of the fastest ways to work remote with global OSM data. The only alternative would be to do the processing local using OSM planet extracts. BTW.: All APIs are hosted on donated resources and maintained by volunteers. So they require fair use and are esp. not suitable to do bulk transfers: http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy
(02 Jan '14, 15:54)
iii
OK, maybe you can help me :) I do this with overpass, I want to get states(admin_level=4) in this bbox. this is my code: http://overpass-turbo.eu/s/1V7 why it's take a few minutes to return results? in nominatim it's really fast. I use overpass turbo Thanks !!
(02 Jan '14, 16:00)
Izikb
|