/MUNI-arrival-app

A web application that displays the times and stops of the Muni metro system in San Francisco.

Primary LanguageJavaScript

SF Muni Upcoming Arrivals App

  • Blocker: API endpoint is a bit funky and nested URL for another endpoint for each stop.

Requirements

This is a small basic project for practice with API, and with React. Used as a drill.

Getting Data

We’ll be using the Restbus API to get data about MUNI, which is a transit agency in San Francisco, CA.

Core Restbus Concepts

  • Since we only care about the "sf-muni" agency, that id will be the same in all API calls
  • Routes are identified by the case-sensitive route ID (e.g. F)
  • Stops are associated with a route and are identified by a numeric stop ID (e.g. 4534)
  • Stops do not always have multiple predictions. Sometimes they only have one and, in rare cases, they may have none.

Example API Endpoints

Example starting points

There are several paths we can take to kick this project off:

  • Getting real arrival times for a set route and stop Replace the hardcoded arrival times with real predictions for a set route and stop. For example, route F and stop 5184.
  • getting a list of all SF Muni routes Use the RestBus API to replace the truncated, hardcoded list of routes with all the available SF Muni routes