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

Hi,

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

humpataa
11112
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.

Regards.

permanent link

answered 06 May '21, 14:03

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

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
×29
×16

question asked: 03 May '21, 14:47

question was seen: 1,188 times

last updated: 06 May '21, 14:03

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