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
363410
accept rate: 0%


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
17.3k16145274
accept rate: 21%

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
Your answer
toggle preview

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:

×158
×77
×70
×54

question asked: 30 Dec '18, 19:07

question was seen: 859 times

last updated: 02 Jan, 19:48

powered by OSQA