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

The Google Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations. The information returned is based on the recommended route between start and end points, as calculated by the Google Maps API, and consists of rows containing duration and distance values for each pair.

This service does not return detailed route information. Route information can be obtained by passing the desired single origin and destination to the Directions API.

Official Documentation

395 questions
2
votes
1 answer

Live Travel Time Between Locations in Google Spreadsheets

I want to calculated Travel Time between two locations based on start time based on current weather/traffic conditions in my google spreadsheet. The format is something like this: Start Location End Location Start Time Estimated Travel…
2
votes
0 answers

Error: connect ETIMEDOUT - While getting distance from Google on Meteor Server

I am using google to find distance and duration between 2 points on server side using Meteor. It was working fine but suddenly it is giving this error: Error: connect ETIMEDOUT at Object.Future.wait…
StormTrooper
  • 1,731
  • 4
  • 23
  • 37
2
votes
1 answer

Google distance matrix API: Maximal number of arguments?

what is the maximal number of origins and destinations I may give to this function? Or better: What is the maximal number of origin-destination-combinations I may ask for? Right now I have 33 origins and 3 destinations - and it is working. As far…
N. Eb
  • 29
  • 3
2
votes
2 answers

Distance Matrix API: Zip Code 70128 returns zero results

Here's a little puzzler. If I search for a distance involving area code 70128, like so: https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=40.6782%2C-73.9442&destinations=new+orleans+LA+70128 I get a ZERO_RESULTS…
2
votes
1 answer

Google API for distance doesn't consider traffic when calculate time duration between two points

As it is mentioned on The Google Maps Distance Matrix API - departure time is used to receive trip duration considering current traffic conditions. I tried to get time between points in different days for example: Fri, 02 Oct 2015 14:10:45 GMT…
1
vote
1 answer

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> getDistance( String Origin,…
1
vote
1 answer

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: const distanceMatrixService = new…
Wipster
  • 1,510
  • 1
  • 15
  • 32
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
1
vote
1 answer

Need to loop through Google Distance Matrix JSON Object Response

Okay, so i have a list of businesses each with it's own div created via DOM (document.create(div)) blah blah blah div business 1. 12 miles (only shows on first div) div business 2 div business 3 etc. I'm using Google's Distance Matrix to calculate…
BERRY
  • 27
  • 2
  • 7
1
vote
1 answer

Quantifying the distance using Google_distance r function

I'm trying to quantify the distance between localities, applying the Google_distance r function. I have run the examples of the Google_distance function, but the distance between localities is missing. The others fields are complete, but not the…
Jose
  • 11
  • 2
1
vote
0 answers

One-To-Many travel time calculation and export

I have an excel document with every Australian postcode including LONG and LAT coordinates for each. What I need to be able to do is get the travel time from one location in Aus to each of the locations in this excel document and end up with these…
1
vote
0 answers

How to enable Distance Matrix API ( Google API ) by restricting access from Android App?

Am using google's distance matric API in my Android Application https://maps.googleapis.com/maps/api/distancematrix/json?origins=10.016029902612894%2C76.40124697219122&destinations=10.000406199999999%2C76.31017589999999&key=*xxxxxxxxx* It worked…
1
vote
0 answers

Google Distance Matrix vs Google Maps vs Direction Service Difference

I am working on the application where I need to calculate the distance between 2 points on road. I am trying to make use of the Google API's to find the same. However, I am seeing the difference in between Distance calculate by Distance…
Anup
  • 73
  • 2
  • 10
1
vote
0 answers

Google Maps Distance Matrix Traffic Assumptions

I am trying to figure out exactly how the distance matrix API processes traffic for driving. Currently, I am using the advanced version of the API by specifying a date and time of departure. I use the gmapsdistance package in R, and specify "None"…
1
vote
0 answers

Am I returning my current location correctly?

When I enter coordnates manualy, my returning JSON is correct: { "destination_addresses" : [ "Warsaw, Poland" ], "origin_addresses" : [ "Modra 36, 71-220 Szczecin, Poland" ], "rows" : [ { "elements" : [ { …