NOTICE: help.openstreetmap.org is no longer in use from 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

tijmenheid
415511
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
19.0k16166302
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

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:

×181
×98
×94
×74

question asked: 30 Dec '18, 19:07

question was seen: 6,104 times

last updated: 02 Jan '19, 19:48

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