NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello all,

I am creating an application where I would like to use openstreetmap but I am a completely novice. I have taken a look at the help wiki, specifically the framework section as well as the "Databases and data access APIs" but I am completely lost about what service/framework whatsoever I should use.

Ideally I would like to be able to have my own instance in my server. Right now I am using the open API of Nominatim where I can grab an address, but I know I can install it in my own server if necessary.

Also, I would like to for example, search for the shops or museums around 5 km of one address in the back-end. Such a thing cannot be done with Nominatim and therefore, this is when openstreetmap can help me or I believe so.

Please, could someone guide me about what could I use or where I could find answers to my questions?

Thank you very much in advance and regards

asked 03 Jul '20, 07:13

dejavits's gravatar image

dejavits
31224
accept rate: 0%

What do you mean by "your own instance"; just that you will host your own copy of OSM data? Is your end goal just to be able to search for nearby POIs, or...?

(06 Jul '20, 16:14) mwoehlke

I mean to host a service in my localhost, like I could do with Nominatim but for OSM. My end goal in the back-end is to search nearby POIs and also know the distance between them. Thank you!

(07 Jul '20, 05:55) dejavits

I don't know of any publicly available frameworks to do this, but as a hint: Geoapify offers this in their Places API (bounding by travel time), so as a combination of an isoline or isochrome function (possibly based on valhalla isochrome) and poi search. Test it here: https://apidocs.geoapify.com/playground/places (tick "Search by isoline").

Nominatim only offers a poi search by bounded box or administrative place afaik, not by radius or the like.

(Try e.g. "bakery in delft": https://nominatim.openstreetmap.org/search.php?q=bakery+in+delft+&polygon_geojson=1&viewbox= )

So you either have to rebuild the places api as offered by geoapify through PostGIS functions or lower your expectations in using the bounded box variation already present in Nominatim.

permanent link

answered 07 Jul '20, 08:21

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 07 Jul '20, 08:33

Sorry for the delay answering. I think I have different requirements, which I could summarize in two:

1.First one would be the ability to render maps; I mean, if I use leaflet, I need to make a query to "https://{s}.tile.osm.org/{z}/{x}/{y}.png". I would like to have my own "tile" instance in my server. What technology/Framework do I need to use? I think this is called "map rendering"?? 2. I have a list of POI (lat, lng), I need to calculate the distance between them. 3. Besides of point 2, I would also like to query my database of POIs in order to search for POIs close to certain place (lat, lng). For example, if I have a POI in a city I would like to be able to search for POI in a city close to that one.

I am not sure if this is possible, I am experienced developing SW but I have zero knowledge of maps, and so on.

Thank you in advance.

(12 Jul '20, 10:14) dejavits

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

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:

×689
×290
×193
×118
×1

question asked: 03 Jul '20, 07:13

question was seen: 2,104 times

last updated: 12 Jul '20, 10:14

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum