0

Hi guys, I've got a simple question and would be great to have some starting information on how to get this going. I'm a newbie here with OSM and searched the forums across different platforms, but just can'T find a simple starting point. So here's what I need:

  • user goes to map on my website and selects a button f.e. 'clothing shops'
  • map shows a marker on all clothing shops.

And that's it.

I'm using leaflet to get the map on my website and that works, though what I need to figure out is how to get OSM data of the amenities. (preferably through php, java or http request) Then the part of adding markers on the map is easy, and if needed with clustering.

ps: in case anybody knows a better platform for this purpose then leaflet it would be great to know about.

Thanks a bunch!

asked 30 Dec '18, 19:07

tijmenheid's gravatar image

tijmenheid
415511
accept rate: 0%


One Answer:
2

You can query OSM via the Overpass API. A quick search gave me

permanent link

answered 31 Dec '18, 06:51

escada's gravatar image

escada
18.7k16159298
accept rate: 20%

Thanks a bunch mate, the minimalistic sample should have all I need.

Later I hope with some more experience to know where to find these things easier myself too. Habt ne gute rutsch!

(31 Dec '18, 11:39) tijmenheid

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:

×163
×88
×79
×58

question asked: 30 Dec '18, 19:07

question was seen: 1,794 times

last updated: 02 Jan '19, 19:48

powered by OSQA