Hi all, there are a lot of info or thread dedicated to the usage of OSM with database and so on but I wasn't able to figure out if I can do what I have in mind for mi site.

I want to build section on my site to reviews POI focused on my town so I want to have a map where I can extract data of the POI already on OSM but at the seme time let the user to add more information on the POI already existing or adding a new one. All info will be stored on my database so that when some one will search for a POI on my site it will show a dedicated page to that POI but also its position on the map.

Thanks in advance to everyone that will helping me to point in the right direction.

asked 07 Feb, 17:27

cpqueen10's gravatar image

accept rate: 0%

edited 09 Feb, 09:37

aseerel4c26's gravatar image

aseerel4c26 ♦

(First, welcome, great that you want to use OSM! Second, I suggest to get a bit involved and just try to put your favourite restaurant on the map (if not already existing) or similar simple POI stuff. Do not use other maps for your edits, but only your personal real-world observation.)

See https://wiki.openstreetmap.org/wiki/Develop (mostly the right box "Using OpenStreetMap for Development"). You can do nearly everything with OSM, because our data is free. Displaying a slippy map with POI markers is quite easy with leaflet (also used on osm.org) or openlayers.

Regarding pulling POI out of OSM you can have a look at other projects, e.g. https://wiki.openstreetmap.org/wiki/OpenStreetBrowser or https://wiki.openstreetmap.org/wiki/Wheelmap (their code is free software, so you can look at / use it).

If you want to let your users add new info to the POIs it gets a bit tricky:

  • If you want to store that info in your own database ...
    • ... and you want to continue to get updates from the OSM database you need to somehow link your data for the POIs to the POIs from OSM. OSM object ids are not guaranteed to be stable and hence the same POI may have a new id after some years/months/days (see also https://wiki.openstreetmap.org/wiki/Persistent_Place_Identifier ).
    • ... and you do NOT want to continue to get updates from the OSM database you can just do a one-time import of all relevant POIs into your database and subsequently do all changes on this POI set.
  • If you do NOT want to store that info in your own database have a look at the project wheelmap (mentioned above), which also lets users add/change POI information, but they does not write this info to an own database, but instead write this info back to the main, public OSM database. This approach only is possible if the user-entered info is useful for many many people (e.g. the suitability of POIs for wheelchairs is such a useful info, see the related issues of Good_practice and Verifiability).
permanent link

answered 09 Feb, 10:09

aseerel4c26's gravatar image

aseerel4c26 ♦
accept rate: 18%

edited 09 Feb, 10:41

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 07 Feb, 17:27

question was seen: 78 times

last updated: 09 Feb, 10:41

powered by OSQA