Sunday, 25 August 2013

Calculating reasonable detours with google maps for python

Calculating reasonable detours with google maps for python

I am going to take a drive across several states in a couple days. I'm
building a script that would scrape through lots of different locations of
interest, then tell us which ones are within 20 minutes detour of our
route. The only way I can think of to do this is by using the route on
google maps to create an array of lat/long coordinates which roughly
outline our route, then running a 'distance from line' algorithm on those
points. An alternative might be to simply add the lat/long coordinate into
the route and see how much time is added.
If you can think of an alternative, superior way to accomplish this task,
let me know :)

No comments:

Post a Comment