Questions tagged [google-routes-api]

Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API.

Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features.

https://developers.google.com/maps/documentation/routes

10 questions
2
votes
1 answer

Cast Error during HTTP Post Request to Google Route API,

This is the first time I am trying to use an HTTP Rest API with Post request, I am trying to use google Route API to compute direction, I follow the body from the google documentation however I keep getting this error _CastError Exception has…
1
vote
0 answers

Google Routes api X-Goog-FieldMask is not working

i am sending a post request to https://routes.googleapis.com/directions/v2:computeRoutes?key=APIKEY with body as { "origin": { "location": { "latLng": { "latitude": 37.7749, "longitude":…
1
vote
0 answers

How can you get journey time volatility info from Google Maps Platform APIs?

In the google maps user-facing client, you can get ranges on a route's time (e.g. a planned route from London to Edinburgh shows "typically 6 hr 50 min to 8 hr 50 min, Arrive at about 10:30 PM"). How can you pull that prediction info out of the…
Spycho
  • 7,698
  • 3
  • 34
  • 55
0
votes
0 answers

Usage tracking per channel

According to this page https://developers.google.com/maps/reporting-and-monitoring/reporting?hl=en#usage-tracking-per-channel there is opportunity to use param channel for tracking usage of api. How I should to set this param (channel) for tracking…
0
votes
0 answers

Node js Google Routes Library Field Mask

I'm trying to use Node Js Google Library the method compute Routes. But in every execution i try i have: "catch getPathFromGoogle Error: 3 INVALID_ARGUMENT: FieldMask is a required parameter. See https://cloud.google.com/apis/docs/system-parameters…
David Bar
  • 146
  • 3
0
votes
0 answers

Using Routes Api not Direction Api Flutter

How should we send an HTTP request to the routes API, not the direction API, to get more precise polylines in Flutter? It would be helpful if anyone could give me an example of sending that request to the routes API. I tried searching in the hope of…
0
votes
2 answers

How to return "waypoint_order" in Google Routes API?

I'm developing a system to trace a route using the Google Routes API. https://developers.google.com/maps/documentation/routes/intermed_waypoints I have the origin and destination points and between these points there are some points of interest.…
-1
votes
0 answers

Add dynamically waypoints on route

According to Google route API, it is possible to get routes from location A to location B For example : Paris (France) to Lille (France) : With route given by the API, is it possible to define some waypoints automatically ? Indeed, I dont want to…
bahamut100
  • 1,795
  • 7
  • 27
  • 38
-2
votes
0 answers

Google routes api is not returning `distanceMeters` field

I have this request for google routes api (https://routes.googleapis.com/distanceMatrix/v2:computeRouteMatrix) { "origins": [ { "waypoint": { "location": { "latLng": { …
-2
votes
1 answer

How to know if google routes api has found no routes?

I am trying the new google routes api, I tried 2 edge cases: origin and destination are 2 points in the sea origin and destination are 2 points in the land but are very close (<10 meters) In first case, this is the request for computeRoutes: { …
HHH
  • 124
  • 1
  • 1
  • 10