Create a map that displays the travel time around my home.
Uses the Google Distance Matrix API to compute the actual travel times and folium to display the results.
You need an API Key for the Google Distance Matrix API and place it in the file API_key.txt.
WARNING: I used the free test version of the Distance Matrix API but testing thousands of distances can easily add up to severall 100$, so be careful!
The script can easily be used for any location by simply adjusting the values in the configuration file config.json and then run run.sh.
- Implement the four different modes (walking, biking, driving and transit)
- Add colorbar
- Make the different modes mutually exclusive in the Layerselection (see this plugin)
- Create nicer folder structure and a
setup.pyfile - Create a clustering of points similar to Sebastian Strug (see below)
While working on this I found this great article by Sebastian Strug. I forced myself not to look at it until I was done so I would have to figure things out by myself. Sebastian also uses folium but utilizes a clever way to cluster the datapoints instead of displaying them as a heatmap (definitely worth checking out).