-
Notifications
You must be signed in to change notification settings - Fork 5
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
[ALS-1839] Route avoidance options #308
Conversation
…ute box border issue
…lized lng when map renders world copies
…ct/amazon-location-features-demo-web into ALS-1839_more-route-options
…3/makeen-project/amazon-location-features-demo-web into ALS-1839_more-route-options
[ALS-1839] Route avoidance options
[ALS-1839] Route avoidance options
src/locales/en/en.json
Outdated
"text": "Avoid dirt roads" | ||
}, | ||
"avoid_uturns": { | ||
"text": "Avoid uTurns" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably display it as "U-turns" instead of "uTurns" since "uTurn" is the value for it for HERE's API, but it is referred to as a "U-turn" in real life
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with this suggestion. Can we get a follow up PR to update the strings for all languages to be in the U-Turn format?
Ferries: routeOptions.avoidFerries, | ||
DirtRoads: routeOptions.avoidDirtRoads, | ||
Tunnels: routeOptions.avoidTunnels, | ||
...uturnAvoidanceOption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why we aren't supporting other avoidance options?
"CarShuttleTrains": boolean,
"ControlledAccessHighways": boolean,
"DirtRoads": boolean,
"Ferries": boolean,
"SeasonalClosure": boolean,
"TollRoads": boolean,
"TollTransponders": boolean,
"TruckRoadTypes": [ "string" ],
"Tunnels": boolean,
"UTurns": boolean,
https://docs.aws.amazon.com/location/latest/APIReference/API_CalculateRoutes.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline that this is the set of avoidance options we want to go with as a starting point.
This PR adds routes avoidance options for all the travel modes; including Tolls, Farries, Dirtroad, UTurns and Tunnels. uTurn avoidance is not supported for Pedestrian and Scooter travel modes. Also adds new avoidance options in default settings.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.