Skip to content

ajohns619/MBTA-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBTA-Map - Red Line

Both pages use the Google maps API to display markers denoting the user's current location as well as the stop or train locations. The user's location is found by calling on navigator.geolocation. Train and stop locations are retreived by sending requests to the MBTA-Realtime API. The API documentation can be found here.

trains.html

Shows all trains currently on the redline in realtime by calling on the MBTA's API service.

stops.html

Shows all stops on the Boston MBTA red line on a Google map and displays the stop name as well as the next departure times underneath the map. The code pulls the stop locations as well as the respective stop's departure trains from the MBTA API. Any Alerts associated with the station are displayed directly under the departure times.

Map screenshot Display screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published