Here's an example cURL request body for a single origin, single-destination
route. It uses field masks to request a route token, along with the route
duration, distance, and route polyline:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-20 UTC."],[[["To get a route token from the Routes API, you must set `travelMode` to `DRIVE` and `routingPreference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`."],["Ensure that none of your route waypoints are via waypoints when requesting a route token."],["Use the `routes.routeToken` field mask in your request to ensure that a route token is returned."],["The route generated with a token may vary slightly from the planned route due to dynamic road conditions, and it's recommended to use the token soon after generation."],["The route token can be used in the Navigation SDK for your planned route."]]],[]]