google-geocoder

Google geocode status always empty

天涯浪子 提交于 2019-12-11 18:47:16
问题 I am new to geocode. I am getting the zip code from the user finding the lat and long and comparing it with a set of nearby locations who latitude and longitude are present in a JSON. So I have to loop through each event to compare. The geocode status is always empty and hence I am not able to get the lat and long for the zipcode which the user has entered. <script src="http://maps.google.com/maps/api/js?sensor=false"></script> This is my Js function. self.find_events = function find_events

Not getting the real latitude and longitude? Only getting 0.0 0.0

老子叫甜甜 提交于 2019-12-11 17:51:39
问题 Here I am using this code in order to get the latitude and longitude of the location but all that I am getting is latitude 0.0 and longitude 0.0 the code to find the latitude and logitude that I am using is given as below , Also I am testing this code in Genymotion emulator and all that is printed in the log is 0.0 0.0 because the if(address.size()>0) is not getting satisfyied can anyone tell where am I going wrong or is it because of emulator. Geocoder geo = new Geocoder(getActivity()); try

Possibility to get the shop name with google maps geocoder api?

风格不统一 提交于 2019-12-11 14:23:58
问题 I am wondering if it is possible to get a name for a shop, mall or restaurant by using the google geocoding api. For example I need to have ' Starbucks ' as a result if the user searched for. Using the Address Component Types from the official api reference doesn't seem to be able to receive this. Is there any other way to get this information? 回答1: No, the geocoder returns coordinates for postal addresses (and some "well-known" locations). I believe you are looking for the Places API, also

Rails Geocoder “undefined method error”

删除回忆录丶 提交于 2019-12-11 07:58:54
问题 Another true newbie on Ruby here, so please be gentle... I'm working with alexreisner's Geocoder on rails 3.0 and am unable to call methods from the Geocoder::Results lib. I've pored over the Geocoder documentation, but I can't accomplish one simple thing: pull out a "state" result from a user-submitted address. So turn "123 Fake Street, San Francisco, CA" into "CA" or "California." (My program will only use the "state" information for now to help determine results, but I'd like to have full

Geocoder returns empty for only one address

末鹿安然 提交于 2019-12-11 07:36:10
问题 I'm using the Geocoder to retrieve lat and long coordinates from a list of addresses. It works perfect with all of them except for one, where it returns empty. I've tried the address on Google Maps (on device app as well as web browser) and it is a valid address, showing its exact location. Any ideas of how to mitigate this? This is the address that doesn't get processed: "315 Iron Horse Way, Ste. 101, Providence, RI 02908" 回答1: One option is to call the Geocoding Web Service directly. It

Google's GeoCode Convert City, STATE into Latitude Longitude

偶尔善良 提交于 2019-12-11 06:07:29
问题 The following code works asynchronously. I only have it set up to convert a City, State into latitude and longitude. That value is then alerted. How can I write a function that actually returns these values? var map; var geocoder; function initialize() { geocoder = new GClientGeocoder(); } // addAddressToMap() is called when the geocoder returns an // answer. It adds a marker to the map with an open info window // showing the nicely formatted version of the address and the country code.

Android 4.1 Geocoder.getLocationFromName() throws IOException: Unable to parse response from server ONLY over 3G

ε祈祈猫儿з 提交于 2019-12-11 05:52:36
问题 I am using the Geocoder in my android app to resolve a string in to Addresses. The following snippet of code works normally over Wifi, but not over 3G. When over 3G, it throws an IOException: Unable to parse response from server . In other discussions about this, a common answer is that a probable cause is that the Geocoder is used many times/minute, surpassing the threshold, and that causes the service to temporarily throw the exception. The I am sure this is not my case, because I never got

Google map geocoding stops, while executing recursively

前提是你 提交于 2019-12-11 04:45:36
问题 i am using following function to load latlng of addresses From an array to array about 40, but it stops after 10 iterations. loadStoreLatLong(40); function loadStoreLatLong(i){ var paddress = store_locations[i]['address'] +','+store_locations[i]['postal_code'] + ', ' +store_locations[i]['district'] + ',' + store_locations[i]['country']; var pgeocoder = new google.maps.Geocoder(); pgeocoder.geocode( { 'address': paddress}, function(results, status) { if (status == google.maps.GeocoderStatus.OK

Google geocode API can't find address returned by the place API

∥☆過路亽.° 提交于 2019-12-11 03:25:40
问题 I can't get google's geocode api to recognize the address: The Squaire 12 Am Flughafen 60549 Frankfurt am Main Germany The Squaire is a building at the airport in Frankfurt. It doesn't appear to have a normal street address, but a number of businesses in The Squaire have addresses like "The Squaire NUMBER". For example: ALEX: The Squaire 17, 60549 Frankfurt am Main, Germany Bilfinger Facility Services GmbH: THE SQUAIRE 13, Am Flughafen, 60549 Frankfurt am Main, Germany But no matter what I do

Google Maps Geocode doesn't return country

痴心易碎 提交于 2019-12-11 00:45:54
问题 I need a reliable method to get the city , state and country place_id from latitude and longitude. I'm trying by using Google Maps geocode, but the problem is that some coordinates don't return the administrative_level_1 (state) or the country. Take this GET request for instance: https://maps.googleapis.com/maps/api/geocode/json?latlng=-25.4364413,-49.2839333&result_type=country&key=YOUR_API_KEY It returns: { "results": [], "status": "ZERO_RESULTS" } Did you know a way to get this results?