google-geocoder

Google GeoCode Autocomplete limit State

喜你入骨 提交于 2019-12-10 19:09:39
问题 I am trying to add an Google Geocode Autocomplete field to my form. I have been able to get it to restrict the results returned to the country (AU) but it would be even better if I could limit the results to the state as well. (New South Wales/NSW) This is my current initialize() function: function initialize() { var options = { types: ['geocode'], componentRestrictions: {country:"AU"} }; autocomplete = new google.maps.places.Autocomplete( (document.getElementById('autocomplete')),options);

Geocoding API issue ZERO_RESULTS in api response but works in browser

Deadly 提交于 2019-12-10 11:23:52
问题 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

Google geocode API returns inconclusive results

血红的双手。 提交于 2019-12-09 19:25:56
问题 For some addresses that I attempt to geocode, google returns inappropriately inconclusive results. The following is an example, but it is not an isolated incident. The first returned result is the exact match, however google flags it as a "partial_match": Street address: 16160 Frederick Rd City: Gaithersburg State: MD Zip code: 20877 Link: http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=16160%20Frederick%20Rd,+Gaithersburg,+MD,+20877 My issue here is in determining which

Google Geocoding API returns wrong language in response

余生颓废 提交于 2019-12-09 06:32:10
问题 My project requests Geocoding API for coordinates and correct full addresses in Odessa, Ukraine. I could request response in Russian or Ukrainian language adding language=ru ( language=uk ) parameter to the HTTP request. Starting today I get street name in Ukrainian in response, no matter which language I specify in request. Examples. Request for Russian: https://maps.googleapis.com/maps/api/geocode/json?address=Пушкинская, Одесса, Украина&language=ru Relevant part of the response: "results"

How to get a javascript lat/lng variable out of a Google Map API function

情到浓时终转凉″ 提交于 2019-12-09 01:31:39
问题 I need to get the Lat/Lng from a Postcode, so I'm using Google Map/Geocode API. I can't get the lat/lng variable out of the function running within the Geocode script. The code I'm using is below: <input id="address" type="textbox" value=""> <script type="text/javascript"> var lat; var lng; function addressurls(address) { var address = document.getElementById("address").value; var geocoder = new google.maps.Geocoder(); geocoder.geocode({'address': address}, function postcodesearch(results,

English instead of local language for Geocoder

北战南征 提交于 2019-12-09 00:36:25
问题 I am using Geocoder to get address from lan/lat coordinates. The problem is that the address is in local language (the street name usually). How can I set it to be only in English? I am using: Geocoder geocoder = new Geocoder(Context, Locale.getDefault()); Tried: Geocoder geocoder = new Geocoder(Context, Locale.ENGLISH); Geocoder geocoder = new Geocoder(Context, Locale.US); With no luck. 回答1: API 19 The answer is not completely correct I think. I have just had that case, when I set the

Return address from Google Maps Geocoder v3

半城伤御伤魂 提交于 2019-12-08 04:32:30
I have the following function: $(function() { var address = $("#address").text(); var r; function encodeAddress() { geocoder = new google.maps.Geocoder(); geocoder.geocode({'address' : address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { results[0].geometry.location r = results[0].geometry.location console.log("inside:" + r); } else { alert("Google Maps had some trouble finding" + address + status); } }); } encodeAddress() console.log("outside:" + r); }); I am trying to return the geocoded address for use with Street View as well as Gmap. Inside returns the

Google Maps Geocode API, how to access with your API Key? [closed]

我的梦境 提交于 2019-12-08 00:35:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . According to Google Map's Geocode API documentation: https://developers.google.com/maps/documentation/geocoding/index#GeocodingRequests you can simply make a call to the geocode request address like this: http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor

Android Geocoder getFromLocationName fails with valid address

霸气de小男生 提交于 2019-12-07 19:14:09
问题 I'm trying to get latitude and longitude of specific addresses using addressList = geoCoder.getFromLocationName(locationName, 1); For most addresses this works just fine, but there are some valid addresses, like "Lentoasemantie 1, Vantaa", which returns empty array. The strange thing is that the valid addresses used to work 4 days ago, but not anymore while most of the addresses continue to work. So, this looks like Google backend problem and I'm wondering should I report this to Google

Difference results between Geocoding services and search on gMap

非 Y 不嫁゛ 提交于 2019-12-07 08:44:34
问题 I want to get the latitude and longitude for this adress : Boulevard de la Marne Zone industrielle, COULOMMIERS, 77120, France I'm adding the api to my page with : <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script> When I use gmaps the result is good but when I want to retrieve it by the API : geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': myAdress, 'region': 'FR'}, function (results, status) {...}); It does the following request : https: