Why not ask your question on the new OpenStreetMap Community Forum?


not sure I have chosen the best subject. Imagine there is a Leaflet / OSM map on a certain server and it's displaying a bunch of POI in my browser - let's say all the shops of a company. As a user I can click on them, get details in a small popup etc.

I am not into Leaflet, but as far as I can see, everything seems to be made via Javascript / Ajax requests. I would like to "read" the list of POI via PHP from that server without "having to deal" with the map itself. How? Any advise appreciated.

Thank you!

asked 03 May '21, 14:47

humpataa's gravatar image

accept rate: 0%

The list of POI is probably in a geojson, or GPX file. You'll have to read the code to find the path. Or you can check the calls in the network tab of the developer tab of your browser.

Please share the url of the map if you want more specific help.

Also be aware that it's probably illegal to scrape data this way, it should be mentioned in the ToS of the website. If your usecase is legitimate, you should contact them to have confirmation.


permanent link

answered 06 May '21, 14:03

H_mlet's gravatar image

accept rate: 13%

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: 03 May '21, 14:47

question was seen: 764 times

last updated: 06 May '21, 14:03

powered by OSQA