google-places-api

Google's new Places Library ( implementation 'com.google.android.libraries.places:1.0.0') not resolving

混江龙づ霸主 提交于 2019-12-01 03:40:09
I am attempting to migrate to the new Places SDK client, but the dependency I'm told to install in the documentation is giving me a "failed to resolve" error. I made sure to remove the old SDK and the places-compat library, followed by cleaning and rebuilding. Here is my list of dependencies: dependencies { implementation 'com.android.support:support-v4:28.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation fileTree(include: ['*.jar'], dir:

Changes in short_name for Place Details API

情到浓时终转凉″ 提交于 2019-12-01 03:33:58
问题 Did the format of the Google response change ? Since a few days, when I query the API with a place_id parameter corresponding to a country, I don't get any country code (alpha2) anymore. For example: # Query for "France" # http://maps.googleapis.com/maps/api/js/GeocodeService.Search?7sUS&9sen&14sChIJMVd4MymgVA0R99lHx5Y__Ws&key=[API_KEY] "results" : [ { "address_components" : [ { "long_name" : "France", "short_name" : "France", <= Used to be "FR" "types" : [ "country", "political" ] } ],

user_ratings_total No longer available in google places API. Alternative for getting total number of reviews?

*爱你&永不变心* 提交于 2019-12-01 03:33:21
As of today (5/25/2016) there seems to no longer be data for user_ratings_total in the Google Places API. I use this to get the total number of reviews for a business. Is there an alternative method to getting this data? I'd try the Google My Business API , see in particular the documentation section Work with Review Data . You'll need to Request access to the API . If you would like Google to reinstate the previously undocumented user_ratings_total result key (or something similar), then please go to: https://code.google.com/p/gmaps-api-issues/issues/detail?id=3484 and add your vote for this

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

偶尔善良 提交于 2019-12-01 03:13:40
问题 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

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

荒凉一梦 提交于 2019-12-01 00:57:50
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 :) Robert Dodd 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. Have a look at the following questions for some examples: List of Cities by Country https://raw

Google's new Places Library ( implementation 'com.google.android.libraries.places:1.0.0') not resolving

删除回忆录丶 提交于 2019-12-01 00:27:05
问题 I am attempting to migrate to the new Places SDK client, but the dependency I'm told to install in the documentation is giving me a "failed to resolve" error. I made sure to remove the old SDK and the places-compat library, followed by cleaning and rebuilding. Here is my list of dependencies: dependencies { implementation 'com.android.support:support-v4:28.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation

user_ratings_total No longer available in google places API. Alternative for getting total number of reviews?

喜欢而已 提交于 2019-12-01 00:18:14
问题 As of today (5/25/2016) there seems to no longer be data for user_ratings_total in the Google Places API. I use this to get the total number of reviews for a business. Is there an alternative method to getting this data? 回答1: I'd try the Google My Business API, see in particular the documentation section Work with Review Data. You'll need to Request access to the API. 回答2: If you would like Google to reinstate the previously undocumented user_ratings_total result key (or something similar),

How to change text size in places autocompletefragment in android?

ⅰ亾dé卋堺 提交于 2019-11-30 23:19:20
问题 I am using the PlaceAutocompleteFragment that is provided by google in a project that I am working on right now. But the problem is I need to display the place name that I've selected from the autocomplete widget but the whole text in not showing because the default textsize in the widget is too big. So, is there any way I can change the textsize in the PlaceAutocompleteFragment without creating my own custom search UI? My XML code: <android.support.v4.widget.DrawerLayout xmlns:android="http:

Google PlacePicker Closes Immediately After Launch with resultCode 2

三世轮回 提交于 2019-11-30 21:40:30
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? Assuming you have the Place API for Android enabled and your API key is correctly configured in your manifest, this could

How to restrict google places to specific city

两盒软妹~` 提交于 2019-11-30 20:39: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); }); As Luke said the places autocomplete allows you to use componentRestrictions to filter by country only.