google-places

How to resolve “Places API for Android does not seem to be enabled for your app”

倾然丶 夕夏残阳落幕 提交于 2019-12-01 11:52:27
This error has been bugging me since more than a Day now. I have Already searched thoroughly, but none of the answer provided a solution for me. I have properly set up the API key with App restrictions providing the package name and SHA1 key. Here is the code manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.myapplication"> <!-- The ACCESS_COARSE/FINE_LOCATION permissions are not required to use Google Maps Android API v2, but you must specify either coarse or fine location permissions for the

How to resolve “Places API for Android does not seem to be enabled for your app”

六月ゝ 毕业季﹏ 提交于 2019-12-01 10:40:52
问题 This error has been bugging me since more than a Day now. I have Already searched thoroughly, but none of the answer provided a solution for me. I have properly set up the API key with App restrictions providing the package name and SHA1 key. Here is the code manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.myapplication"> <!-- The ACCESS_COARSE/FINE_LOCATION permissions are not required to use Google

Google PlacePicker Closes Immediately After Launch

老子叫甜甜 提交于 2019-12-01 02:04:56
I am developing an Android Application and was looking into Google Places for some functionality within the application. Google has recently released the PlacePicker feature which is what I am using. I have followed the Google guidelines and quick start guides to the "T". The functionality was working amazing as of three hours ago and now when I go to test it, it launches and then immediately closes with no errors thrown in the stack trace. Here is how I am using the code: This is within a fragment. // The Location Selection from Google Place Picker where.setOnClickListener(new View

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

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.

GMSAutocompleteViewController showing only 5 results

删除回忆录丶 提交于 2019-11-30 15:12:50
I integrated GMSAutocompleteViewController in my app. let autocompleteController = GMSAutocompleteViewController() autocompleteController.delegate = self let filter = GMSAutocompleteFilter() filter.type = .address autocompleteController.autocompleteFilter = filter // Display the autocomplete view controller. present(autocompleteController, animated: true, completion: nil) This always shows only 5 results. Also, the behaviour seems to be a bit weird. At first when I write J in the search, 5 results are displayed. After writing some more text and removing those to again set the search text as J

ApiNotActivatedMapError for simple html page using google-places-api

孤街醉人 提交于 2019-11-30 06:17:49
问题 I'm trying to create a simple html page (I'd later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I still get an error message. Here is my html- <head> <meta charset="utf-8"> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=places"></script> <title>test</title> </head> <body> </body> but I get this error message- and in the console I get - Google Maps API error: Google Maps API

Google Places Autocomplete - Pick first result on Enter key? [duplicate]

若如初见. 提交于 2019-11-30 06:12:40
This question already has an answer here: Google maps Places API V3 autocomplete - select first option on enter 17 answers I'm using a Google Places Autocomplete and I simply want it to select the top item in the results list when the enter key is pressed in the form field and suggestions exist. I know this has been asked before: Google maps Places API V3 autocomplete - select first option on enter Google maps Places API V3 autocomplete - select first option on enter (and have it stay that way) But the answers in those questions don't seem to actually work, or they address specific added

How to resolve PLACES_API_ACCESS_NOT_CONFIGURED in Place Autocomplete Fragment

ぐ巨炮叔叔 提交于 2019-11-29 18:37:39
I'm having problems with Android Google Places API - autocomplete feature. I use the same key that I used for Android Google Maps API but it is not open place fragment. Its only show Maps but when open a Place Autocomplete Fragment but its open and automatically close and show PLACES_API_ACCESS_NOT_CONFIGURED error. Please help me out to this issue and show the right to handle the issue. Here My Manifest XML: <meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyARQ78yaNEJH12aJLM1Y-112WY12p95ZOEGI"/> And Here My Code for open Place AutocolmpleteFragment: try { Intent

Embedded Google Map can't get current location in WebView

独自空忆成欢 提交于 2019-11-29 07:17:05
I followed this tutorial: http://android-er.blogspot.com/2013/03/embed-google-map-in-webview.html I'm trying to just use the Google Map in the WebView, but it can't get my current location. I've enabled JavaScript on the WebView. What else do I have to enable? Does anyone know why that might be? Shouldn't it prompt me to use my current location? Note that I am not interested in using a MapView as an alternative whatsoever. I'm trying to find out what I need to set on the WebView or maybe on the device's location services? You should permit the web view to access your location by overriding the