google-places-api

REQUEST_DENIED Google Maps API v3 Places Error

落花浮王杯 提交于 2019-12-01 08:17:41
问题 I am trying to use Google Places in Google Maps API v3, but I get the following error: REQUEST_DENIED. My URI is: https://maps.googleapis.com/maps/api/place/search/xml?location=47.1738409069289,27.574825862967&radius=1000&name=atm&sensor=false&key=AIzaSyA5aYxMm7RoYGwoha1oDHVRXbPxF0Ep0vk After reading this: REQUEST_DENIED when using the Google Places API and this: Google Places API - REQUEST_DENIED , I got another key, set the sensor to false and true and I still get the same error. Is there a

What is the proper way to use the radius parameter in the Google Places API?

孤街浪徒 提交于 2019-12-01 08:10:44
问题 I am using the Google Places API to retrieve all the POI (Places of Interest) around a the current location, it works ok but I have noticed that whatever the value of the radius is, I always get the same number of results (~ 20). As a result, if I give a radius that is too big, I don't necessarily get the nearest POI s. If I reduce the amount of the radius to be small enough, I will retrieve those nearest places again (from experimentation, I have noticed that 100 meters is a proper value)

Implement google location search in android app like OlaCabs

不问归期 提交于 2019-12-01 08:07:38
问题 I have implemented google location search like OlaCabs app but it is not as fast in searching as OlaCabs do.Reason behind it is I need to hit a rest api (Google Place api) to find locations as per text search. I noticed that in olacab app there is some text showing "powered by Google" (Look screen below).So I just want to know: 1.Is there any api provided by google for android rather than rest api ? 2.If OlaCaps using some paid google search API then what is it and form where can I buy it?

PlaceAutocompleteFragment can't resolved

偶尔善良 提交于 2019-12-01 06:32:01
In my app I have added Google Maps and they work fine. I want to add a PlaceAutocompleteFragment. I am using the key which I had already generate for maps and I have enable the option Places Api from google.console. I have added these to my build.gradle: compile 'com.google.android.gms:play-services-maps:8.3.0' compile 'com.google.android.gms:play-services-location:8.3.0' compile 'com.google.android.gms:play-services:8.3.0' but when I try to use PlacesAutoCompleteFragment then Android Studio can't resolve this. The problem here is that PlaceAutocompleteFragment didn't exist in version 8.3 of

Google Places API for iOS vs Google places Web service

﹥>﹥吖頭↗ 提交于 2019-12-01 06:05:10
问题 I plan to have an application to list nearby places in a UITableView with UISearchController combined by Auto-complete feature to filter the result of places and I'm trying to use Google Places API. I'm confused because I don't know which API should I use: Google Places API Web Service or Google Places API for iOS I didn't find a way to get a list of places in the Google Places API for iOS documentation. When to use Google Places API Web Service and when to use Google Places API for iOS ? and

Google Place API - Always return this “status” : “REQUEST_DENIED”

混江龙づ霸主 提交于 2019-12-01 05:49:17
I am currently working with Google Place API, I have a problem with it whenever I am going to access this link https://maps.googleapis.com/maps/api/place/search/json?location=latitude,longitude&radius=1&sensor=false&key=apikey with entering the information like latitude,longitude and API key and set sensor equal to false ,but it always shows : { "debug_info" : [], "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" } I already searched for that kind of error and I saw that some of the post suggests to check sensor value and check the API key . I already checked it and also

Google places autocomplete - location and radius not working

依然范特西╮ 提交于 2019-12-01 05:37:51
Im trying to set the google places autocomplete to sort the results from the nearest to a point. I have a code like this... var defaultPlace = new google.maps.LatLng(49.227463, 16.546097); var optionsAuto = { location: defaultPlace, radius: 20000, types: ['geocode'], componentRestrictions: { country: 'cz' } }; var autocomplete = new google.maps.places.Autocomplete( inputStart, optionsAuto ); the types and componentRestrictions works great but the location and radius doesn't seems to be working. Look at the documentation It states: radius | Defines the distance (in meters) within which to

How to remove search icon from PlaceAutocompleteFragment in Android

最后都变了- 提交于 2019-12-01 04:47:11
问题 I am using PlaceAutocompleteFragment to search places. Below is my xml code <fragment android:id="@+id/place_source" android:layout_width="match_parent" android:layout_height="40dp" android:background="@color/colorPrimary" android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment" /> I want to remove search icon which by default comes with fragment. 回答1: You can use this single line to get the reference of search icon : ((View)findViewById(R.id.place_autocomplete

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

南笙酒味 提交于 2019-12-01 03:58:24
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 doesn't say nothing about. Currently it seems not to be possible. There is an open feature request ,

PLACES_API_INVALID_APP error from Android Play Places

此生再无相见时 提交于 2019-12-01 03:53:37
I am trying Google Place Autocomplete Example from https://github.com/googlesamples/android-play-places . I have put the correct API key at the correct place. I knew it because when I put a random string invalid API key I will get a different error. So after I put the correct API key, I run the app in both real device and simulator. Both devices gave me this error: Status{statusCode=PLACES_API_INVALID_APP, resolution=null} What causes this error and how to fix it? It's because the package that you put on the credentials section on the Developers Console is different to the project you are