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