google-distancematrix-api

Google Distance Matrix API Key Excel VBA

大憨熊 提交于 2019-12-10 11:37:50
问题 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 exceed 2,500 transactions. Thanks in advance for the help. Edit (7/20): So I updated my code to use ClientID instead of API key '&clientid=EntersIDHere' and it works, but still only does 2500 transactions. 'Calculate Google Maps distance between two

Google API Error OVER_QUERY_LIMIT & Empty Dashboard

拈花ヽ惹草 提交于 2019-12-08 06:32:10
问题 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 requests/day currently. Also, API statistics report in Google Console project doesn't show any data for Distance Matrix API in the dashboard, however, it shows data for other APIs. See attached screenshot. Error Message: { "destination_addresses": [],

Google API Key hits max request limit despite billing enabled

你。 提交于 2019-12-08 02:56:14
问题 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 unrestricted (for now) API key. This is how I am making calls to the Google Distance Matrix API: var requestUri = string.Format("https://maps.googleapis.com/maps/api/distancematrix/xml?units=imperial&mode=driving&origins={0}&destinations={1}&KEY={2}",

Google API Key hits max request limit despite billing enabled

左心房为你撑大大i 提交于 2019-12-06 13:05:22
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 unrestricted (for now) API key. This is how I am making calls to the Google Distance Matrix API: var requestUri = string.Format("https://maps.googleapis.com/maps/api/distancematrix/xml?units=imperial&mode=driving&origins={0}&destinations={1}&KEY={2}", originAddress, destinationAddress, apiKey); var request = WebRequest.Create(requestUri); var response =

Can an Android-App-Restricted API key be used for Google Distance Matrix?

情到浓时终转凉″ 提交于 2019-12-06 11:39:57
I enabled Google Distance Matrix API and restricted the key for Android Apps because I will be sending http queries from my android app to receive json response: Without restriction, it works and I get expected result. But when it's restricted (with my package name and SHA1) I get a failure message in the json object with a "REQUEST_DENIED" status saying: This IP, site or mobile application is not authorized to use this API key. Request received from IP address [ip_addr], with empty referer. From other posts I understand that the Distance Matrix API must be used with a Server Key , but in this

Duration_in_traffic less than duration in google Distance Matrix API

▼魔方 西西 提交于 2019-12-04 04:06:59
I am using both the "duration_in_traffic" and "duration" feature using the DistanceMatrix API. For a given coordinate pair, I see the following results: { "destination_addresses": [ "Hamburg, Germany" ], "origin_addresses": [ "85748 Garching, Germany" ], "rows": [ { "elements": [ { "distance": { "text": "761 km", "value": 760831 }, "duration": { "text": "7 hours 1 min", "value": 25242 }, "duration_in_traffic": { "text": "6 hours 42 mins", "value": 24145 }, "status": "OK" } ] } ], "status": "OK" } Here is my question: How is it that the duration_in_traffic is less than duration? From what i

My UI is blocked using AsyncTask with distancematrix and google Maps

﹥>﹥吖頭↗ 提交于 2019-11-29 18:09:27
I'm using google maps to show some markers. The markers are download from a database and, at the same time, I get the distancematrix from google api, between the current position of the user and the marker that I get from the database. My problem is that I was doing this with .get, bloking my ui (I've read that .get blocked the ui: dataFromAsyncTask = testAsyncTask.get(); Now, I'm trying to do the same without blocking the ui, but I'm not be able to get at the same time, or in a good way, the distance for this markers. I appreciate some help, please. This is my code with my old and wrong .get:

How to display google distance matrix API response in grid cell per row?

旧城冷巷雨未停 提交于 2019-11-29 12:02:57
I want to display a grid with start and destination travel point with google distance matrix response value of the same. For this, I have GPS coordinates of origin and destination in the array. I am able to build the grid, and I am unable to fill the google distance in each row from the API callbacks. var dataArray = []; //Using Ajax request to get the result from DB. success:function(data.d) dataArray = data.d.slice(); //sample data set are : StartLatitude, StartLongitude, EndLatitude, EndLongitude, UserName, LoggedTime,etc.. Here i need to show the array as grid in web application, with a

My UI is blocked using AsyncTask with distancematrix and google Maps

六眼飞鱼酱① 提交于 2019-11-28 11:56:35
问题 I'm using google maps to show some markers. The markers are download from a database and, at the same time, I get the distancematrix from google api, between the current position of the user and the marker that I get from the database. My problem is that I was doing this with .get, bloking my ui (I've read that .get blocked the ui: dataFromAsyncTask = testAsyncTask.get(); Now, I'm trying to do the same without blocking the ui, but I'm not be able to get at the same time, or in a good way, the

Google maps api v3 calculate mileage by state [closed]

别来无恙 提交于 2019-11-28 09:23:19
I'm searching for a way to calculate mileage by US State based on an origin, waypoints and destination of a route using Google Maps API v3. I have tried using Googles Distance Matrix API but this it is calculating the distance between 2 points, which is good, but I need the break down for miles traveled for each State. For taxes purposes (IFTA reports for transportation). I've done a lot of googling and looked through the documentation but I'm not seeing anything that calculate the mileage per State. I know how to use Google maps and I know this is possible since I saw it on one video. There