google-places-api

How to set “Types” in Google Place PlacePicker in Android?

孤街浪徒 提交于 2019-12-19 05:57:06
问题 In the new google places API, they come with a new feature called PlacePicker. It's a simple activity to select a place of the list/map of places they have. In the Places API we can give a types list, to receive only places of those specific types. I'm building an app that uses only "establishment" places. But this activity shows all the places, including a lot of places that i do not need (libraries, schools, gas ...) There is a way to set the types of the PlacePicker? Reading the API docs

Google PlacePicker Closes Immediately After Launch with resultCode 2

青春壹個敷衍的年華 提交于 2019-12-19 03:27:12
问题 In my project PlacePicker was working fine but today suddenly its closing immediately after launch with resultCode 2. here is the logcat output 07-06 16:06:36.596 1023-20519/? W/Places﹕ e.a:638: gLocReplyElement unsuccessful status: 1 07-06 16:06:36.596 1023-20519/? W/Places﹕ e.a:665: gPlaceQueryResult unsuccessful responseCode: 26 07-06 16:06:36.596 21086-21708/? E/PlacePicker﹕ PLACES_API_QUOTA_FAILED Any idea? what is the meaning of PLACES_API_QUOTA_FAILED error code? 回答1: Assuming you have

This IP, site or mobile application is not authorized to use this API key with IP authorized

穿精又带淫゛_ 提交于 2019-12-19 01:47:22
问题 I'm using the Google Places API which requires that you give a list of IPs which are allowed to use the service. The API works great on my local machine but it give a This IP, site or mobile application is not authorized to use this API key when I use it from my production server. I've added the required IPs. Any other ideas what might be the issue or how to debug it? 回答1: I had the same issue and I found this. On the url, it requires the server key in the end and not the api key for the app.

This IP, site or mobile application is not authorized to use this API key with IP authorized

血红的双手。 提交于 2019-12-19 01:47:12
问题 I'm using the Google Places API which requires that you give a list of IPs which are allowed to use the service. The API works great on my local machine but it give a This IP, site or mobile application is not authorized to use this API key when I use it from my production server. I've added the required IPs. Any other ideas what might be the issue or how to debug it? 回答1: I had the same issue and I found this. On the url, it requires the server key in the end and not the api key for the app.

Where I can find a place id on google maps

怎甘沉沦 提交于 2019-12-18 21:19:29
问题 I want to get the place images accord to the introductions here: https://developers.google.com/places/documentation/details#PlaceDetailsRequests According this document I need the "place id" of the place. https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AddYourOwnKeyHere Where can I find the placeid 回答1: The place_id is in the SearchResults from any of the SearchRequests: from the documentation: { "html_attributions" : [], "results" : [ {

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

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

How to display nearby places like ATM's, hospitals in Android Google Map?

∥☆過路亽.° 提交于 2019-12-18 10:17:56
问题 How to display nearby places & place details like ATM's, Hospitals, Restaurants, etc. in Android Google Map This is the link that I used: Showing nearby places & place details using Google Places & Maps API I'm able to fetch my current location but nearby places are not getting displayed. Neither am I getting any error in my logcat 回答1: you can get places near by your location using Google Place API and for use of Place Api see this blog hope this will help you. 回答2: Get places nearby your

Regarding Places Library for Google Maps API Quota limits

大兔子大兔子 提交于 2019-12-18 08:01:37
问题 Quick question, just to clarify the wording and meaning (because it's changed a couple of times for Map loading...) There are the two following statements in the Places API FAQs: The Google Places API has the following query limits: Users with an API key are allowed 1 000 requests per 24 hour period. Users who have verified their identity through the APIs console are allowed 100 000 requests per 24 hour period. A credit card is required for verification, by enabling billing in the console. We

How to restrict google places to specific city

夙愿已清 提交于 2019-12-18 05:03:39
问题 I am currently able to restrict places to only one country, but I also want to restrict on a specific city also. Any ideas how to achieve that? This is my current code: var autocomplete, options = { types: ['geocode'], componentRestrictions: {country: 'est'} }; autocomplete = new google.maps.places.Autocomplete(input, options); google.maps.event.addListener(autocomplete, 'place_changed', function () { var place = autocomplete.getPlace().formatted_address; $(input).attr('value',place); }); 回答1