Hi :), I hope I don't duplicate any of the previous questions. I am creating a webpage, on which I would like to display a map with all districts of the city of Gdansk and some additional information for each of them. I am trying to find some way to draw all this stuff on the map. As an initial idea (which may not be the best one, in the first place) am looking for a solution to send a request (REST API most preferable) to get information about a place (city, Gdansk to be exact) by its name. The information I need, are: location, boundaries, subareas (districts). I will also need to be able to get the same data using an Id for each given subarea (district): location, boundaries and possibility to check if given address is a part of this subarea. I will be grateful for help and can provide all required details to have the issue sorted out. Thanks in advance :), Bulczi. asked 28 Jun '18, 21:51 Bulczi |
What you want is probably the Nominatim API or maybe Photon (which is an ElasticSearch based search engine for Nominatim data). Depending onwhat exactly you want to do, utilizing the Overpass-API may work too. answered 29 Jun '18, 07:57 SimonPoole ♦ Hi SimonPoole :) Thank you for your answer. I actually took a shot with Nominatim API, but I got some issues there. Here are Gdansk city information found on Nominatim. The things I am looking for are:
I need all of this, to be able, to draw it on the map divided on districts having just a city name. For now I have only managed to find the some places in Gdansk using the following Nominatim request: https://nominatim.openstreetmap.org/search/Gdansk?format=json&polygon=1&polygon_geojson=1&limit=9999 , but I can find no results, that are stated in the Administrative reference on the Nominatim page.
(01 Jul '18, 11:56)
Bulczi
You may want to have a look at https://wambachers-osm.website/boundaries/ to see what boundaries are actually available in OSM for Gdansk (potentially you could simply extract these directly without using Nominatim).
(02 Jul '18, 09:28)
SimonPoole ♦
|