Skip to content

akora/gmaps-driving-distances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualising driving distances from a base location as layers on a Google Map

First of all you need to get your own Google Maps API key. Go get one and replace <put-your-Google-Maps-API-key-here> with it.

You need to get a web server to "host" the pages, so one is included as a Docker container.

Make sure that Docker Engine is running.

Then from the root of the project start the containerised Apache:

docker-compose up

Apache will pick up a basic httpd.conf from apache/conf.

Simply visit http://localhost and click on the HTML file.

The oneDayDistanceInMeters parameter sets the base distance in meters, feel free to adjust it to your preferred setting.

oneDayDistanceInMeters = 500000; // 500 km

Sample map view

sample map view

Tested on

  • Docker Engine 18.09.2
  • Apache/2.4.39

About

Visualising driving distances on Google Maps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published