Description Usage Arguments Details Value Author(s)
Function takes a starting point and end point to make a line, then finds a point on that line that would take a certain amount of time to drive to.
1 | calc_point_distance(start, end, duration)
|
start |
starting point in the form of a geocode list, index 1 is longitude, index 2 is latitude |
end |
end point in the form of a geocode list, index 1 is longitude, index 2 is latitude |
duration |
drive duration we are looking to find, in minutes |
Creates a list of geocodes along a line between the start and end point, and uses a binary search algorithm to find the point that is closest to the correct distance.
geocode of the point that is approximately 'duration' minutes away
Martin Boros
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.