Questions tagged [google-distancematrix-api]
The Google Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations
google-distancematrix-api
399
questions
-2
votes
0
answers
13
views
Google Maps API's that solve TSP [closed]
Despite examining the Distance Matrix API, Directions API, and Optimization API, I am uncertain if any of these APIs encompass the functionality required for solving the TSP. My available data ...
-1
votes
1
answer
31
views
Google Maps Distance Matrix API returing empty "destination_addresses" and no distance data
I've got a list of addresses without city or zip, but in the vicinity of another address. The Google Distance Matrix API is generally able to infer the locale of the destination address from that of ...
-1
votes
1
answer
119
views
Google Distance Matrix API for two-wheel
I am trying to get the time it takes to get from place A to place B, using several mode of transportation: four-wheel, two-wheel, bicycle, and walk. I am stumbled upon the google distance matrix API ...
-1
votes
2
answers
107
views
Getting error: "o.map is not a function" when using google maps distance matrix api in Node.js
I'm using the Google Maps API Node Client and calling the distancematrix function, but I'm getting an error that says o.map is not a function.
const {Client} = require("@googlemaps/google-maps-...
0
votes
0
answers
108
views
How to compute the distance matrix of many origins and destinations
I'm trying to compute the distance matrix of multiple origins and destinations in my django view. I was previously looping through the data and making individual call to the google distance matrix api ...
0
votes
1
answer
119
views
Google Distance API Invalid Key
I'm just starting to use Google Maps APIs and I'm having some trouble when attempting to send a request via Postman to
[https://maps.googleapis.com/maps/api/distancematrix?<params>&key="...
1
vote
1
answer
72
views
How to pick specific elements from a jsondecode in flutter
I am planning to take distance and time from a JSON list provided by google distance API however I have no idea how to specifically take the elements, here's the code I use to get the json
Future<...
1
vote
1
answer
171
views
Google distance matrix api quota behaves unreliable
I'm talking specifically about the quota of type elements per minute per user. I set this value to 150. The documentation says number of elements is origins x destinations.
This is how I call the api:
...
1
vote
0
answers
120
views
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&...
0
votes
0
answers
129
views
How to parse Distance Matrix in JS to only get the distance and the duration?
I have been trying to only get the distance and duration using the Google Distance Matrix API.
I tried and built and modified as I logically could but nothing.
I even slice the response because I did ...
0
votes
1
answer
282
views
Cities missing in Google Maps API distance matrix
I have been using the Google Maps API's distance matrix. However, this seems to not be working for some cities and I'd need your help to figure out why / what I'm doing wrong.
Here's what I'm typing ...
-2
votes
1
answer
513
views
google maps, client libraries node js, distance matrix request js
I am trying to implement a google maps distance matrix api request using, node JS google Client library. specifically
@googlemaps/google-maps-services-js
The problem am facing, I can only finds ...
-1
votes
1
answer
747
views
Can we have different distance for single source and destination?
On Monday, August 8, 2022 20:37:30(IST) and Sunday, August 14, 2022 17:02:32(IST), when we called Google Distance Matrix API for following source and destination address combination
origin_addresses: ...
1
vote
1
answer
556
views
Find nearest hospital from latitude and longitude data in python/pandas
Patients often bypass their nearest hospital to go to another hospital for surgery (- many reasons for that).
I have 500,000 patient episodes of patients attending 24 hospitals in the UK.
I want to ...
-1
votes
1
answer
50
views
Issue Regarding GoogleMaps DistanceMatrixApi
There is a glitch in the GoogleMaps DistanceMatrixApi.
For the origin pin code B3H and destination pin code B3J with Travel Mode = DRIVING, the distance returned from the GoogleMaps DistanceMatrixApi ...