ricardoyp / map-exercise-LA-metro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Map-exercise ๐Ÿ—บ๏ธ

In this challenge, you'll need to use the map from mapbox to print in real time the public transport of Los Angeles.

Tasks ๐Ÿ“

After have installed and initialized mapbox in your index.js you have to:

  • Center the map in Los Angeles, here the coordinates: [-118.243683, 34.052235].
  • Use the Metroโ€™s Realtime API you have to display the Los Angeles public transport in the map by making petitions to this endpoint https://api.metro.net/LACMTA/vehicle_positions/all. ๐ŸšŒ

Bonus ๐Ÿ†

Create a code to refresh each 10 seconds and retrieve the new positions of the public transports and with a popup, display the ID of the vehicle.

About


Languages

Language:JavaScript 67.6%Language:HTML 32.4%