google-places-api

Google places API does this violate the TOC? [closed]

我是研究僧i 提交于 2019-12-09 06:52:07
问题 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 6 years ago . I want to have a little search box, where the user can search for a place (using API), then when they select a place e.g "statue of liberty, new york", I want to take them to a detail page I.E mysite/ID/statue-of-liberty-new-york and then let them do some things on that page, The only data I want from google on

How to get the unique identifier for a city through the Google Places Autocomplete API performing the search in multiple languages​​?

醉酒当歌 提交于 2019-12-09 05:37:31
问题 I need to get a unique identifier for the name of a city when that same city is again sought in another language API to find this place same city. Example: I do a search via the Google API Autocomplete place like this: City: New York The result is: New York, NY, USA Country code: U.S. And when I do another search for "New York" in Russian, for example, I need a unique identifier for New York to know that New York is the same in English as in Russian "Нью-Йорк" The results is: Нью-Йорк, Нью

iOS Google Places API: “This IP, site or mobile application is not authorized to use this API key”

天涯浪子 提交于 2019-12-09 02:49:37
问题 I am testing the Google Places API on an iOS 7 app. When I send a request to the API I get a json result with the following error message: This IP, site or mobile application is not authorized to use this API key. To build the request, I went to the Google API console and generated my iOS API Key based on my application bundle. I'm not using Google Maps or anything else on the app, just trying to make a request to the Places API. Is there anything I'm missing? PS: I copied the URL I'm using

Google places API - How to get regions of a country?

。_饼干妹妹 提交于 2019-12-09 01:26:37
问题 I've looked again and again on the site for this simple question and didn't find an answer I think it is very generic need Let's say that you have two drop down lists One you want to populate with a list of countries, and once you've selected one - to populate the other with a list of it's regions. Is it even possible with Google Places API? Cheers :) 回答1: No, it is not possible with Places API. You have 2 options: Use Another Database There are a few free databases of country/state lists.

Get a address_components

筅森魡賤 提交于 2019-12-08 18:58:29
问题 I'm using google places API with geocoding. I have a problem with address components type. I want to get information about address which user typed in autocomplete in this format: Street number/ street / City/ Province/ Country. If user autocompleted "Street 12, SomeCity, SomeProvince, SomeCountry", I want to return in alert all of this information. But when user type only "someProvince, SomeCountry", I want to have only province and country address type. Here is my code: google.maps.event

Android: access saved google locations programmatically

笑着哭i 提交于 2019-12-08 17:28:32
问题 Google maps allows the possibility of saving favourite locations for ease of access later... see here. In Android, where a location is required to be entered, it would be neat if there were an API to enable the user to choose from their already-saved favourite locations, e.g. via a picker dialog or something along those lines. I can't find such an API... is there? The closest I've found is this and this, but these don't seem to allow picking from your stored locations. 回答1: There really isn't

Search locations inside a particular city in Google Places Apis

北慕城南 提交于 2019-12-08 15:31:19
问题 I am using Google Places Apis to filter results inside a particular city.I am able to filter results.but it also shows results out side of that city. For example if I set LatLngBounds of DELHI city and searching for a location in city NEWYORK. It also gives me result of NEWYORK city(but NEWYORK's LatLng is not lies inside DELHI). How can I restrict my results to a particular city? This is my PlaceAutoCompleteAdapter class import com.google.android.gms.common.api.GoogleApiClient; import com

Google maps/places API search by phone

二次信任 提交于 2019-12-08 15:27:24
问题 We have a signup page where the user enters his business phone number. We want to find his business information from the phone number for verification. How can this be done with Google places/maps api? Is there any better alternative? I am kind of lost. 回答1: After looking through the google api to double-check, their response doesn't return a phone number for the company either. https://developers.google.com/places/web-service/ It also may depend on the type of business you're looking for but

Google Places Autocomplete API Multiple Instances

匆匆过客 提交于 2019-12-08 13:47:15
问题 I've got a problem with my site. I use autocomplete to find the lat long of an address before submitting to a form. The problem is, on the page where I have 2 instances, I get an error in Chrome "'geometry' is null or not an object" and the first instance will not get the latlon. if($('input#searchArea').length){ var input = document.getElementById('searchArea'); var options = { componentRestrictions: {country: 'uk'} } var autocomplete = new google.maps.places.Autocomplete(input, options);

Hierarchical & translated results of a placeId using Google Places

穿精又带淫゛_ 提交于 2019-12-08 12:46:26
问题 I'm using Google Places to search for a place (Maybe I need Google Maps in order to get my desired goal): https://maps.googleapis.com/maps/api/place/details/json?placeid=Eh9SdWUgU3RhbmlzbGFzLCBDb2xtYXIsINem16jXpNeq&language=hi&key=myKey Response: { "html_attributions" : [], "result" : { "address_components" : [ { "long_name" : "Rue Stanislas", "short_name" : "Rue Stanislas", "types" : [ "route" ] }, { "long_name" : "Colmar", "short_name" : "Colmar", "types" : [ "locality", "political" ] }, {