Skip to content

ItsGreyedOut/CitiBike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Citi Bike Maps

I used the Citi Bike API to get the status and location of every Citi Bike station in New York and used Leaflet to help visualize the data.

Details

  1. Wrote code to perform a second API call to the Citi Bike station status endpoint. Take a few moments to study the data that the endpoint returns. In particular, notice station_id, num_bikes_available, is_installed, and is_renting.

  2. Used the data that you got from the second API call, try to add the following functionality:

    • In the popup for each marker, display the number of available bikes.

    • Add a layer control, and split the markers into the following layer groups:

      • Coming Soon: This applies if a station isn't yet installed.

      • Empty Stations: This applies if a station has no available bikes.

      • Out of Order: This applies if a station is installed but not renting.

      • Low Stations: This applies if a station has less than five available bikes.

      • Healthy Stations: This applies if a marker doesn't fall into any of the previous layer groups.

  3. Used a Leaflet plugin to create different types of markers to represent the layers. The following step shows an example map that uses Leaflet.ExtraMarkers.

  4. Add a legend to my map to explain the different markers. The following image shows an example of the final advanced map:

    44-Citibike_advanced.png

Hints

About

This project utilizes Leaflet. This project showcases the Citi Bike API to get the status and location of every Citi Bike station in New York.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published