Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.
0 votes
1 answer
85 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 ...
Justin's user avatar
  • 18.3k
0 votes
1 answer
119 views

Why Google Map Route API is different from google map?

I request the google route api { "origin":{ "address": "日本福岡國際機場" }, "destination":{ "address": "博多車站" }, "travelMode&...
just_code_dog's user avatar
0 votes
0 answers
72 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 ...
user944184's user avatar
0 votes
1 answer
86 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 ...
Luis Fernando montes blanco's user avatar
1 vote
1 answer
91 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 ...
Darsh Patel's user avatar
0 votes
0 answers
65 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-...
D Yates's user avatar
  • 45
2 votes
1 answer
217 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, ...
Jonathan Wareham's user avatar
1 vote
0 answers
227 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 ...
Julius Goddard's user avatar
0 votes
1 answer
129 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 ...
albrivas's user avatar
0 votes
0 answers
99 views

google maps extended library "gmpx-route-data-provider": route format

I'm using googlemaps extended-library-component. I have a map already rendered and I want to add a route polyline with gmpx-route-data-provider and gmpx-route-polyline. How to assemble them is ...
seenmycorpseanywhere's user avatar
0 votes
1 answer
213 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 ...
Guanaco Devs's user avatar
  • 1,934
0 votes
0 answers
196 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, ...
Joe's user avatar
  • 480
2 votes
1 answer
193 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 ...
Julian's user avatar
  • 21
1 vote
0 answers
365 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+ ...
Anne Stine's user avatar
2 votes
1 answer
920 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 ...
Avnish 's user avatar

15 30 50 per page