- Go to http://nominatim.openstreetmap.org/ search a place like "Partido de Ituzaingó"
- click on "details"
- Look for OSM ID and copy it (control+c), example: 2018776
- Paste the ID in http://polygons.openstreetmap.fr/index.py and download the polygon
- To get polygon boundaries just add format=json to your request!
- So instead of https://nominatim.openstreetmap.org/search.php?q=Warsaw+Poland&polygon_geojson=1
- Use https://nominatim.openstreetmap.org/search.php?q=Warsaw+Poland&polygon_geojson=1&format=json
- By adding &format=geojson you can get a valid geojson response
- Only add
format=json
into url param