Create a small DC bikeshare location database

I’m kind of new to this site and to programming in general, so please excuse me if I say something wrong.

I need to find a list of all latitude longitude spots for bikeshare stalls in DC. A map with all stations is here . Basically, I can’t figure out how to do this without going into it manually, finding exactly where the kiosk is located on the map on the bikeshare website, and then found it through Google maps to find lat / long (I found out that this can do right click on a location on google maps). I looked for a long and long time to see if there is somewhere a database that stores this information, or I can get it directly from the bikeshare website, but I can not find it anywhere.

I can do this for the DC metro station by clicking on the map directly (for example, here , if you click on the map, you can see the google maps page displayed with a wide / long location).

This is the first time I use the Google Maps API. I want to be able to get these places because I want to display it on my own map using Javascript (which I also never used before). Any help would be extremely helpful!

+4
source share
2 answers

Slightly plunged into the source code, you will quickly find http://www.capitalbikeshare.com/js/maps.js , and there you will see that the positions are being downloaded from http://www.capitalbikeshare.com/stations/bikeStations.xml .

You may also have found that using the network tracker in the browser debugging console.

+3
source

Source: https://habr.com/ru/post/1383546/


All Articles