402 questions
-1
votes
0
answers
30
views
fetch google maps distance matrix not working on android
I'm trying to retrieve distance information between two locations. informations like time, value e.t.c. this works while texting on iPhone but on android it returns undefined. I've tried two ...
0
votes
0
answers
56
views
Is there a way to limit Google API calls after they exceed a certain number?
I am having a problem with some spam bots hitting my google api - distance matrix API and Geocoding API. They are using up all my quoat with spam. Is there a way to limit these to be disabled for an ...
0
votes
1
answer
46
views
Distance Matrix of 7,000 points
I need to optimize routes to visit 7,000 points (~700 routes).
Should I calculate a Distance Matrix of size 7000 X 7000 = 49,000,000 options? That means I would receive a Google invoice of ~0.005*49M =...
0
votes
0
answers
35
views
Google API distancematrix returns an empty value
I am developing a PHP application to calculate the distance between 2 locations.
This is the code:
$GOOGLE_API_KEY = <MYAPIKEY>
$wayFrom = urlencode($wayFrom);
$wayTo = urldecode($wayTo);
$url =...
0
votes
1
answer
36
views
On what is the 'recommended' route based that the Google Distance Matrix API returns distance and travel time for?
We offer customers the option of calculating the distance between to Dutch addresses for things like travel expenses. One of the options we offer is the Google Distance Matrix where they enter two ...
0
votes
0
answers
49
views
Python Google Maps API KeyError: 'distance' when calculating distances between suppliers and destinations
I've been struggling with an issue while using the Google Maps API to calculate distances between multiple origin and destination points from .cvs coordinates data source files. This is my first time ...
-1
votes
1
answer
93
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
426
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
176
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
1
answer
175
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
75
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
229
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
132
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
144
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
341
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 ...