Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support waypoints for overall distance calculation #33

Open
sandraa-nestor opened this issue Apr 8, 2024 · 0 comments
Open

Support waypoints for overall distance calculation #33

sandraa-nestor opened this issue Apr 8, 2024 · 0 comments

Comments

@sandraa-nestor
Copy link

Support waypoints for overall distance calculation

Current behaviour:

Google::Maps.route('London', 'Cambridge').distance
 => {"text"=>"61.2 mi", "value"=>98570}
Google::Maps.route('London', 'Cambridge',  waypoints: 'Luton').distance
 => {"text"=>"34.1 mi", "value"=>54902}

#distance method only returns distance from London to Luton

Expected behaviour:
Route with waypoint returns distance 71.1 miles (sum of London-Luton + Luton-Cambridge)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant