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
1
vote
1 answer

Are historical results from Google Distance Matrix API available?

Is it possible to get historical results (i.e., what the time travel time and distance would be at some point in the past) from Google to match results from the Google Distance Matrix API? I would be willing to pay extra for it. Thanks
Wengraf
  • 21
  • 2
1
vote
1 answer

diffrence between distance matrix api and direction api

i want to display route on google map, i know for that direction api is used. further more i want time duration and distance between two points, that is also we can get from direction api. but next step is to calculate location distance and time…
1
vote
1 answer

How to calculate the distance between user and saved locations in databse?

I have some Locations in my database include the (Longitude,Latitude) of every location I would like to display in listview for user, the distance between the user and the Locations how can I do it ? my Idea at the moment, i want to save the long…
Testiest
  • 39
  • 1
  • 6
1
vote
1 answer

How to use Google API Keys

First of all: Everythig is working at the moment. I just want your opinion for improvements. I am currentyl developing an Android Application, that needs access to different Google APIs. So I created a API key and made a App restioction. I used that…
1
vote
0 answers

Sequencing callbacks from Google DistanceMatrix

Background: I have 2 origins, 2 destinations and 2 different departure times: 1) A->B (start-time: X) 2) C->D (start-time: Y) I'm looking to retrieve also time from B to C and from D to A, with these departure times being dynamic: calculated after…
Kristo_R
  • 167
  • 1
  • 13
1
vote
1 answer

Google Distance Matrix Rest template call with digital signature generation returning 403 forbidden

I am trying to access the google distance matrix from rest template. I have a valid API key and when I make a call from browser it seems to work fine. I used the google code present in this link to generate the google signature. When I take the…
GooglePro
  • 33
  • 7
1
vote
0 answers

Google distance matrix api issue with zipcode with different formats

I need to get drive times for a place to the nearest airports. There is a service which is already in place which gives me the address of the place as well as the address of nearest airports in the north america region. One airport has a 5 digit…
user7258044
  • 121
  • 1
  • 1
  • 4
1
vote
1 answer

Using the Google_distance function in Googleway

I am having trouble understanding the outputs when using this google_distance function. When using mydist() in ggmap I would get the number of miles, minutes, hours that it would take to get to point A to point B. Now my output looks like this when…
HHK
  • 11
  • 2
1
vote
0 answers

Unable to fetch Response For Google Distance matrix in Swift

I am using below code to get json response for Google maps api , Unable to get json response. Making get request using Alamofire pod. Alamofire.request(…
Badrinath
  • 325
  • 1
  • 7
  • 25
1
vote
1 answer

Google API Future Prediction of Traffic = Typical Traffic shown on Google Maps (maps.google.com)

I just wanted to ask if the future traffic information given in the Google API (Google Distance Matrix API to be exact) is the same as the traffic data used in the typical traffic overlay in the Google maps app. Aren't they both based on historical…
1
vote
2 answers

Google API Error OVER_QUERY_LIMIT & Empty Dashboard

I'm receiving OVER_QUERY_LIMIT error intermittently when calling Google's Distance Matrix API. After enabling billing it should not show this error since I could make 100,000 requests/day as per API documentation. Though, I'm making on 2500-2600…
1
vote
1 answer

google distance api distance mileage calculation

I am working on a project where I have been asked to provide the least amount of distance, and its duration as an estimate based up a journey between two or more postcodes in the uk. e.g.…
1
vote
0 answers

Google Distance Matrix between two locations does not return results when origins and destinations are reversed

Inbound https://maps.googleapis.com/maps/api/distancematrix/json?origins=Mount+Monodnak&destinations=Boston+MA Outbound: https://maps.googleapis.com/maps/api/distancematrix/json?origins=Boston+MA&destinations=Mount+Monadnock You can see that data is…
1
vote
1 answer

Google Places - unexpected 50-char place_id values returned

I am using the Google Geocoding API to retrieve place_id (and other) information to use with the Places API. Most addresses return an expected 27-character place_id value, i.e.: ChIJUXJ61wrsFogR3jv6yBBFlQY However, a small percentage of addresses…
1
vote
2 answers

calculate distance and show route on google map with waypoints

I am working on the web app in Which I need to add pickup address, drop-off address and a array of visit area through which user will move between pickup and drop-off address. What I have done is route the map and calculate the distance between…