NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

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

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

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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: 30 Dec '18, 19:07

question was seen: 5,406 times

last updated: 02 Jan '19, 19:48

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum