google-geocoding-api

Changing from Google maps api v2 to v3

空扰寡人 提交于 2019-12-06 16:11:36
I've been using Google geocoding v3 for about 6 months but all of a sudden it's stopped working (I get a 610 error). It's only stopped in the last week or so. Then I came across this (see the pink box at the top of the page!): https://developers.google.com/maps/documentation/geocoding/v2/ I've read through all the documentation and not sure where to start! I'm hoping it's a small change as it's taken a long time to get this far, can anyone help? [See the full site here][1] UPDATE: require("database.php"); // Opens a connection to a MySQL server $con = mysql_connect("localhost", $username,

How to re-run a javascript promise when failed?

风格不统一 提交于 2019-12-06 15:59:37
I have the following code where I am trying to convert a list of 10-15 addresses in the businesses array into lat/lng coordinates using Google Maps Geocoding API. var geocoder = new google.maps.Geocoder(); var proms = businesses.map(function(address) { return prom = new Promise(function(resolve) { geocoder.geocode({ address: address }, function(results, status) { if (status === google.maps.GeocoderStatus.OK) { resolve({ results: results, business: address }); } else if (status === google.maps.GeocoderStatus.OVER_QUERY_LIMIT) { setTimeout(function() { //HOW DO I RE-RUN THIS "new Promise"? },

Geocoding API issue ZERO_RESULTS in api response but works in browser

╄→гoц情女王★ 提交于 2019-12-06 11:48:21
we are using the standard license for Geocoding APIs and we observed that there are some intermittent issue with the service response, we get ZERO_RESULTS from API but when we use the same address in browser it works and gives us OK status and it happened for multiple address during that time. but after sometime it started working again. so i am confused if there was down time today between 9 AM 11:30 AM PST. i checked the console developer dashboard also and i didn't find any error/latency reported by google. i checked the quata also and we just used only 1.5% of daily limit. here is code

Geocoding API vs Geocoder

半世苍凉 提交于 2019-12-06 07:04:22
In my application I need to use the geocoding, but I am not quite clear which method to use. Until yesterday I added the parameters to the URL maps.googleapis.com/maps/api/geocode/json?address=myparameter&sensor=false , but Google blocked my requests for a day, making the application crash because it did not return any results from the request for geocoding. Now I am using the Geocoder class that does the same thing and also I have seen that you can create and use an API key for Geocoding. Which method do you recommend to use? What is the difference between the two methods, apart from the

Making API call as part of UDF in BigQuery - possible?

南楼画角 提交于 2019-12-06 02:50:53
问题 I'm wondering if it would be possible to make a api call to the google maps geocoding api within a UDF in BigQuery? I have Google analytics geo fields such as { "geoNetwork_continent": "Europe", "geoNetwork_subContinent": "Eastern Europe", "geoNetwork_country": "Russia", "geoNetwork_region": "Novosibirsk Oblast", "geoNetwork_metro": "(not set)" }, And would like to make calls to: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=XXXX

google geocoding api not as accurate as google maps using address

我的未来我决定 提交于 2019-12-06 01:59:56
问题 I have many examples where google maps returns the exact location whereas geocoding cannot find an exact match and provides only a close match lat/lon which is no good for my purpose. example: "1729 state road 8, auburn, IN 46706" in google maps drops me exactly on a walmart distribution center as it should. using geocoding.....either thru http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html or manually via https://maps.googleapis.com/maps/api/geocode/json?address=1729

Google Maps Address Components Geocoding vs Places API - Short vs Long Name

ⅰ亾dé卋堺 提交于 2019-12-06 00:08:18
Hey there GMaps API developers. To start - what an incredible product and service the Google Maps/JS API v3 is - thank you so much! Now, with that important bit of sincere gratitude out of the way... The short_name vs long_name options for address components is a nice feature, but for each service these two attributes mostly contain the same values, except geocode has what I would expect for short_name for both and places has what I would expect for long_name for both! *tears* Before Places library came out I just assumed that Google didn't actually have short/long versions for street name,

Billing issues with google geocoding api

自作多情 提交于 2019-12-05 23:19:28
Billing was added to our gmaps-api project. And the billing definitely propagated, as it was added around 4 weeks ago. In the project dashboard, billing shows as available. However, when we try to adjust our quotas, it says that we need to activate billing. We contacted just about every channel at Google and were told that there is absolutely no provided support for billing issues with developer APIs. Us: "We want to give you money." Google: "No, and we won't help you." Has anyone else encountered billing issues with API projects, and if so, how did you resolve them? --- update --- Note:

Does Google Geocoding API (V3) supports batch geocoding?

╄→гoц情女王★ 提交于 2019-12-05 15:33:13
I've read all geocode service api documentation but haven't found anything about batch geocoding. May be I miss something and there is possibility to make a batch requests? Gigamegs No. There is no way you can batch geocode a bunch of addresses but you can use the directions api to geocode up to 8 addresses. In the business class it allows up to 24 addresses. Read about it: https://developers.google.com/maps/documentation/javascript/directions . You can also try http://code.google.com/p/google-maps-tsp-solver/ . Yes you can. There are different limits for a free account vs an enterprise

Google Maps Geocoding API, feature from the API missing in their JS api (?)

谁都会走 提交于 2019-12-05 06:06:09
The problem is simple, in the documentation for the Geocoding API they say component filtering exists. (Source: https://developers.google.com/maps/documentation/geocoding/ ) However, if I look at the JS documentation ( https://developers.google.com/maps/documentation/javascript/geocoding ), it doesn't seem to be implemented. I do however remember that google earlier used to have features implemented but not written about in their API, so I wonder if anyone knows how to achieve component filtering with the Google Maps Geocoding API? Thanks! The documentation seems to of implemented it now.