andrewdircks / nyc-subway-commute

Tool for visualizing subway commute times for different locations in Manhattan.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Manhattan Subway Commute Visualizer

Investigate the expected travel times (via subway) to different locations using the Google Maps Distance API. Use this tool when apartment hunting to visualize the average commute times for roommates working at different offices.

Setup

  1. Get a Google Maps API Key, described here
  2. Enable the Distance Matrix and Geocoding APIs
  3. Create a .env file as such
MAPS_API_KEY=
  1. Change the _offices_raw dictionary with names of roommates and office addresses. Sample data is in there now.
  2. Change parameters as needed in main()
  3. Install requirements in requirements.txt

Sample Output

Three roommates are looking for an apartment in Manhattan, two working in Midtown and one in FiDi. The visualization script is set up for this scenario which outputs the following plot

About

Tool for visualizing subway commute times for different locations in Manhattan.


Languages

Language:Python 100.0%