I want to implement an auto-complete search feature in my website, but it should only return municipalities (admin_level="8"). Is there a way to filter for this using the Nominatim API? Or should I use osmosis and cross-check the results? E.g, 'Utrecht' returns the province, the city, etc, but I only want the municipality. http://nominatim.openstreetmap.org/search?q=utrecht&format=json&countrycodes=nl If I have to use osmosis, how would I go about it? asked 03 Feb '13, 11:06 ocky7 |
I downloaded my country extract from Geofabrik. Then I ran the following osmosis command on the downloaded osm.pbf file:
Which generates an OSM XML file with all the municipality ways. Although I'd like the related polygons as well. answered 03 Feb '13, 18:14 ocky7 |
Also check out this question.