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

Google Maps API Distance Matrix Requests

I've been using the Google Distance Matrix API for a while now to calculate distances between the consumer and businesses on my website; I have currently hit a wall and seen that my quote hits 2,500 and doesn't process anymore requests after that. I…
1
vote
2 answers

How to access deep JSON element in Java

i have the following JSON response: { "destination_addresses" : [ "Berlin, Deutschland" ], "origin_addresses" : [ "Mannheim, Deutschland" ], "rows" : [ { "elements" : [ { "distance" : { …
farahm
  • 1,326
  • 6
  • 32
  • 70
1
vote
0 answers

Getting future duration_in_traffic from Google Distance Matrix

I am calling the Google distance matrix api with an API key along with a Unix time that is three weeks in the future. My goal is to get duration_in_traffic for a typical weekday at a couple of different times of day. My issue is that I am getting…
JackC
  • 11
  • 1
1
vote
0 answers

Google Distance Matrix API Key Excel VBA

I can't get the VBA Code in my Excel Document to connect to my account, using the API Key. Not sure if I'm putting the key in the right place. I've even upgraded my account, and have billing Enabled. I'm trying to pay them, but it wont let me…
1
vote
2 answers

Using Javascript to query Google Distance Matrix API

I'm not very fluent with Javascript, but am trying to build a simple web app using it to try and learn a bit more. I'm wanting to use the Google Distance Matrix API to let me query the distance between two addresses. I have two input fields that use…
James
  • 15,754
  • 12
  • 73
  • 91
1
vote
2 answers

R: JSONlite Loop Issue

I got all the " Google Map API Requests" in a row, but when I tried to loop to call and parse it. I am getting an error. If I don't use a loop and do it manually it works. a <- c("1780 N Washington Ave Scranton PA 18509", "1858 Hunt Ave Bronx NY…
1
vote
2 answers

JSON: Google Map Distance Matrix Data in R "How to download JSON data into R?"

I am trying to get the data from the Google Map API Distance Matrix to R. I am trying to get the JSON data into R. How to download JSON data into R, so I will be able parse later? require(rjson) url <-…
Alex Soto
  • 175
  • 1
  • 1
  • 7
1
vote
1 answer

Google distance matrix API Info window

How to create such a info windows using google distance matrix API in Android? Should I consume json response?
IntoTheDeep
  • 4,027
  • 15
  • 39
  • 84
1
vote
1 answer

How to avoid using highway with distance matrix?

I'm calculating route distance and transport time between user specified by LatLng (by dragging marker) with distance matrix api. But sometimes I got a wrong distance which looks like using toll(or highway) accidentally. First I have tried: Rounding…
1
vote
1 answer

Not able to see Google Maps APIs Usage Statistics

API statistics report in Google Console project doesn't show data though we are making hundreds of requests every day. Refer attached screenshot, it always shows blank. I have billing enabled in project.
1
vote
1 answer

Get distancematrix by postal code

I am using the distancematrix of Google Maps API to get the distance between two postal codes in Belgium. I face the issue that the country is evaluated in the whole address. Is there a way to force the country in the request? For…
Asterius
  • 2,180
  • 2
  • 19
  • 27
1
vote
1 answer

Google API distancematrix returning wrong json result in VBA

hope someone can point me in the right direction. I have a function in VBA which is called from Excel, to call the distance from one postal code to another. This is working fine, until now. The distance only has to be calculated for The Netherlands,…
Stephan
  • 463
  • 2
  • 7
  • 22
1
vote
1 answer

Google Maps Distance Matrix Api with multiple values in iOS application

I'm using Google Distance Matrix Api in my application to get distance and time between two points: NSString *link = [NSString…
Roo
  • 613
  • 1
  • 7
  • 24
1
vote
2 answers

Why is google distance matrix not accepting my variables as locations?

I am trying to pass some html form input through google distance matrix api. I have put them into variables and replaced the spaces with "+" signs. When I echo the variables they are perfect. When I hard code those variable values the api returns…
jameson1128
  • 135
  • 2
  • 13
1
vote
2 answers

get distance using google maps distance matrix api JSON output

I developed the following code to get the distance of the given 2 cities through 2 textfields and i want to send them to google maps distance matrix api using the following URl. I send those cities and got the JSON output file. but my problem is how…
sheslv
  • 13
  • 1
  • 4