Skip to content

Visualize travel times to a given location as an isochrone overlay on an interactive map using the Google Maps API.

Notifications You must be signed in to change notification settings

andibarg/google-maps-isochrone-overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-maps-isochrone-overlay

Visualize travel times to a given location as an isochrone overlay on an interactive map using the Google Maps API. Supports bicycling, driving, transit, and walking.

Installation

$ git clone https://github.com/andibarg/google-maps-isochrone-overlay.git
$ cd google-maps-isochrone-overlay

Requirements

Usage

Specify the destination coordinates and the arrival time in '1_get_data.py'. Set the corners and the resolution of the rectangular grid for which you want to extract the travel times. Specify the path of the txt-file containing the API key. The data will be written into 'data\traveldata.csv'.

Then, convert the data into an isochrone map by running '2_get_overlay.py'. Each filled contour corresponds to 10 min of traveling. The number of points in the mesh grid 'Nmesh' defines the degree of interpolation.

Finally, the script '3_get_html.py' creates an html file that shows the isochrone map as an image overlay in Google Maps.

Example

The following figure shows an isochrone overlay to my current work place via public transportation in Copenhagen, Denmark. The arrival time is 2019/10/21 at 9am. The example uses coastline polygons for Zealand, Denmark extracted from the EEA dataset mentioned above.

Screenshot

Similar work

About

Visualize travel times to a given location as an isochrone overlay on an interactive map using the Google Maps API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published