29 questions
2
votes
1
answer
343
views
Google Navigation SDK (Android): setDestinations(..., CustomRoutesOptions(routeToken)) still takes fastest route instead of my chosen route
I’m using the Google Navigation SDK for Android together with the Routes API - directions/v2:computeRoutes.
From computeRoutes I get two routes: the default one and an alternate. I want to navigate ...
0
votes
1
answer
136
views
How to authenticate with Google Routes API
I'm attempting to use the Google Routes Api through their client library in C#. They show sample code:
public async Task ComputeRoutesRequestObjectAsync()
{
// Create client
...
0
votes
1
answer
175
views
Why Google Map Route API is different from google map?
I request the google route api
{
"origin":{
"address": "日本福岡國際機場"
},
"destination":{
"address": "博多車站"
},
"travelMode&...
0
votes
0
answers
152
views
Google's Distance Matrix API vs Routes API
I have an app that uses the Distance Matrix API. The origin and destination inputs that I give it are simple strings like "shibuya" and "harajuku". It returns the formatted address ...
0
votes
1
answer
114
views
route optimization api shipmentIndex undefined
I'm using the Route Optimization API, but I'm noticing that I'm not getting all my points and that the missing delivery doesn't have a shipmentIndex.
import { NextResponse } from 'next/server';
import ...
1
vote
1
answer
123
views
How to set minimum-maximum load constraint in Google Route Optimization API
I'm using Google RO API to create clusters. There is a capacity constraint on the clusters and the clusters should not overlap with each other. To do this, I've set the load demand of each shipment to ...
0
votes
0
answers
89
views
Why is API key not being recognized?
Google Maps discontinued Directions and DistanceMatrix a couple of weeks ago and I am trying to adapt CURL code in PHP to switch over to the Routes API. There does not seem to yet be any handy pre-...
2
votes
1
answer
272
views
Google Routes API - Get leg startLocation / endLocation as address name
I'm migrating from Google Directions API to Routes API, and I've noticed that the leg objects returned in Routes API only include the latitude/longitude of the start/end location. In Directions API, ...
1
vote
0
answers
268
views
How To Send A Request to Google Routes API on the Client Side
On 1 March 2025, support for Google Directions API will be discontinued in favour of Routes API.
Currently, on all my projects, requests for Routes on Google Directions API are made on the client side ...
0
votes
1
answer
175
views
API_KEY_ANDROID_APP_BLOCKED - Routes API
I'm having problems with the Routes API. The ApiKey is restricted so that only my application can use it. I'm using retrofit to make a request but I'm getting a 403 error all the time.
I've tried ...
0
votes
1
answer
235
views
How to serialize a ComputeRoutesResponse
When using the web endpoint with python requests for computing Routes with Google Cloud, https://routes.googleapis.com/directions/v2:computeRoutes, I get the response in json.
This is how I build the ...
0
votes
0
answers
223
views
Google Routes API - Field mask results in empty response
I'm trying to make a POST request to https://routes.googleapis.com/directions/v2:computeRoutes with a field mask like in the documentation to only get the data I need.
It works well with most fields, ...
2
votes
1
answer
205
views
Is there a way to solve the Vehicle Routing Problem (VRP) using ComputeRoutes API?
I want to solve the issue of the Vehicle Routing Problem (VRP) using ComputeRoutes google API (API), as it is more clear and supports nodejs.
I have already create the function with ComputeRoutes, the ...
1
vote
0
answers
421
views
Google Route Optimization API - how to construct header for POST request without OAuth? Need route optimization 25+ stops
My organization was using the Google Directions API for route optimization, but we migrated to the Routes API because initial documentation suggested it would allow us to optimize routes with 25+ ...
2
votes
1
answer
1k
views
Waypoint Optimization: Routes API vs Route Optimization API
I understand both Google Maps Routes API and the (newly-launched) Route Optimization API will return the best possible route through multiple stops. Route Optimization API seems like it can handle ...