google-geocoding-api

How to geocode address by google maps iOS API?

大憨熊 提交于 2019-12-18 13:23:29
问题 I found one way to send request: A Google Maps Geocoding API request takes the following form: https://maps.googleapis.com/maps/api/geocode/outputFormat?parameters where outputFormat may be either of the following values: json (recommended) indicates output in JavaScript Object Notation (JSON); or xml indicates output in XML To access the Google Maps Geocoding API over HTTP, use: But it's really inconvenient, is there any native way in swift? I looked into GMSGeocoder interface and only

Places Autocomplete API to get GPS coordinates from address entered

纵然是瞬间 提交于 2019-12-18 13:05:02
问题 I have an address field in my app where the user needs to enter the required address. I have used google Geocoder to get the GPS coordinates of the address . But now I want to make it easier for the user by using Places Autocomplete . But Places Autocomplete only returns the address , Id and reference of the place . Is there a way to get the GPS coordinates of the address selected by the user using Places Autocomplete API ? Do I have to use Geocoder again after the user selects his address

Maps API keys for geocoding not working anymore?

我怕爱的太早我们不能终老 提交于 2019-12-18 12:24:33
问题 It seems that the generated keys in the Google API's console are not working anymore. With different keys (tried it with both server and browser key, however the server key is what I need), generated from different accounts I get constantly the following errors: Error when using server key: { "error_message" : "This site or IP is not authorized to use this API key.", "results" : [], "status" : "REQUEST_DENIED" } Error when using browser key: { "error_message" : "The provided API key is

Getting an intersection with Google Places/Geocoding API

大憨熊 提交于 2019-12-18 11:31:11
问题 I'm trying to find the two closest streets to a point with the Google Places API (basically to indicate the closest intersection). However, any result will only ever return one "route", if at all. I figure I could do 5 queries in a + or X pattern, but that's hacky, unreliable, and of course will hit the query limit a lot sooner. I am tempted to say that this is a deliberate move because the API is not meant to be used for something like navigation systems (which I'm not trying to do), but I

Google Geocode API Longitude and Latitude unavailble for zip 96101

安稳与你 提交于 2019-12-18 09:23:00
问题 I am using google geocode api, https://developers.google.com/maps/documentation/geocoding/intro. For zipcode 96101 , it is returning "No Results Found". Although it is avialble https://www.google.com/maps?q=96101+zip+code&um=1&ie=UTF-8&sa=X&ved=0ahUKEwid57W5k- here Any idea? 回答1: Have you tried using components filtering to search a postal code? When I execute the following request, I get a postal code in the response https://maps.googleapis.com/maps/api/geocode/json?components=postal_code

Python error load JSON code of google API

喜你入骨 提交于 2019-12-18 08:14:38
问题 I am using google geocode API to test the following Python code using Python 3.5. But receive the error below. The code is copied from sample code of Coursera. We suppose to be able to test any locations. For example: Ann Arbor, MI Any idea about why I have the error when load JSON code: raise JSONDecodeError("Expecting value", s, err.value) from None >JSONDecodeError: Expecting value here are the codes: import urllib import json serviceurl = 'http://maps.googleapis.com/maps/api/geocode/json?

place_administrative_area_level_1 return different values for same area

我的未来我决定 提交于 2019-12-14 03:26:39
问题 I used google map api to get a street address of a house in Madrid, Spain. Then I got the following for place_administrative_area_level_1. place_administrative_area_level_1_short: Comunidad de Madrid place_administrative_area_level_1_long: Comunidad de Madrid Then I saved those details to database. Now I want to search the addresses I saved from Madrid. So from front end, again I search google place api by Madrid, Spain. Then google returns me the following for place_administrative_area_level

How to get reverse geocode two coordinates, that is one is source and destination using Google geocoding API

▼魔方 西西 提交于 2019-12-13 19:22:59
问题 I have two set of coordinates i.e. one is source and destination. I want to geocode them but in a single shot... not by calling Geocoding API twice. Is there a way this can be achieved ? If not what is the best approach? 回答1: Maybe. If your intent is to find routes between latlngs and have addresses for the origin and destination of those routes, just use the Directions API: https://developers.google.com/maps/documentation/directions/intro You'll find start_address and end_address in the

Google autocomplete to a specific city

北城以北 提交于 2019-12-13 17:28:27
问题 I already create a geocode api on google console. I have a search box input with the google autocomplete in my site and I would like to set a specific city to my geocode api and integrate it in my web app. The city is: toulouse, Country: France. When the customer type his address on the search box, I want it to only search all address in the city of toulouse, based on the center of toulouse with covered distance of 20 km. Here is my code based on the file Function.php public function

Failure to geocode using the ggmap and Google Geocoding API in R; behind company firewall

笑着哭i 提交于 2019-12-13 06:20:41
问题 I am attempting to geocode addresses in R using the geocode() function in the ggmap package. I have done this on my personal computer relatively easily and want to attempt this on my work computer. Generally, I am supposed to register with Google, library the ggmap package, read-in my security key, and then I can use the geocode() function. But I get errors. See below: # Library package library(ggmap) # Set key file gmAPI <- "key_file.txt" # Read-in Google API key gmAPIKey <- readLines(gmAPI)