0

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's gravatar image

Bulczi
11112
accept rate: 0%


One Answer:
2

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.

permanent link

answered 29 Jun '18, 07:57

SimonPoole's gravatar image

SimonPoole ♦
40.0k13297634
accept rate: 19%

edited 29 Jun '18, 07:58

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:

  1. The Gdansk city area (which is shown on the map in blue)
  2. All the references, that can be found at the bottom of the page in Administrative section
  3. Possibility to navigate to this references
  4. Access to the area of this references (so the same as in point 1, but for the administrative reference)

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 ♦

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×248
×126
×111
×9

question asked: 28 Jun '18, 21:51

question was seen: 5,797 times

last updated: 02 Jul '18, 09:28

powered by OSQA