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
0 answers

Do I need an API Key for Maps Distance Matrix API?

Do I have to use an API key when using Distance Matrix API? Google Documentation states that the key should be included in every request, but I see I can get the duration and distance values without including a…
kks21199
  • 1,116
  • 2
  • 10
  • 29
2
votes
1 answer

Google maps API using arrival time with traffic duration

The Google Maps API docs as well as all questions I have found on Stack Overflow all state that departure time must be included to return traffic duration. However, my application requires the use of arrival time and not departure time. The docs…
2
votes
0 answers

Random errors from Google Distance Matrix API using gmapsdistance

I have a table of origin/destination pairs (lat-long coordinates). I'm using the R library gmapsdistance and mapply to loop over the table calling the API for each row. (The primary reason for this approach is that each row is a unique combination…
Kyle Ward
  • 889
  • 1
  • 8
  • 18
2
votes
1 answer

Google Maps Distance Matrix API - Not Returning long/lat in response

Trying out the Google Maps Distance Matrix API for calculating the time between the origin and destination and I'm using this API…
2
votes
1 answer

Google API Key giving Query over limit error

We have an web application which was working fine till yesterday. But since yesterday afternoon , one of our projects in google api console , all the keys started giving OVER_QUERY_LIMIT error. And we cross checked that the quotas for that project…
2
votes
2 answers

Distance between two locations without showing a map

I'm a self-made developper and i have no idea of how to do this. I'm trying to set a program with android where the user will type in Textviews: the departure city, the arrival city, the date of departure and the time of departure. Then the app will…
2
votes
0 answers

Eircode not working in Google distance matrix api

Ireland are using a post code system called "Eircode" which is valid layer in google maps and searching an Eircode e.g D03E5Y8 will result in the correct address on the Google map - much like UK / US…
OnTarget
  • 61
  • 8
2
votes
2 answers

Historical data on Google Maps Distance Matrix API

Can i get travel time data from google maps distance matrix API on the past dates, such as November 2017, using driver modes ? And if it possible, how can i do it ? Thank you so much
2
votes
1 answer

Google Maps Distance Matrix with more than 2 elements returns OVER_QUERY_LIMIT

I'm really questioning my sanity here and hoping someone can help. Querying the google maps distance matrix with 2 elements works fine (1 origin, 2 destinations): $ curl…
James Dearman
  • 51
  • 1
  • 7
2
votes
0 answers

Success and Error on the same AJAX call

I thought twice before writing this title, but that's the case. This question is related to DistanceMatrix AJAX query on Google directions Service route returns error, but i managed to get the success working. The event is fired when an input is…
Tiago
  • 365
  • 1
  • 4
  • 17
2
votes
3 answers

API - Travel time based on arrival time

I want to find a travel time (including traffic) between two addresses. Inputs - origin, destination, arrival time, mode of transportation, traffic model (pessimistic, optimistic, best guess) Output - Travel time It looks like the Google Distance…
2
votes
1 answer

Google API Key hits max request limit despite billing enabled

I believe I have done everything to properly setup access to the Distance Matrix API. First, I created a project and a billing account. That billing account is enabled on this project. Next, I enabled the Distance Matrix API and created an…
terbubbs
  • 1,512
  • 2
  • 25
  • 48
2
votes
1 answer

google distance matrix on localhost

I am trying to use google distance matrix to find out the distance and time from one source to one destination. I am calling the function $('#postCode').change(function () { var address = "sydney"; var source = "melbourne" var url =…
Novice
  • 515
  • 7
  • 22
2
votes
1 answer

Does google's Distance matrix api consider "Elevation" too?

Does google's distance matrix api considers "elevation" while showing distance between two latitude-longitude points? Suppose first person is at upper level at an airport, second person is standing at lower level on same airport in same line, will…
user7041082
2
votes
2 answers

Google Maps API: find distance of a route

I need to track the distance a user has traveled. I capture location of the user every 30 seconds and after user has completed the journey, I have a series of locations of the path user traveled. I need to find the distance of the path using the…
Lahiru Chandima
  • 22,324
  • 22
  • 103
  • 179