google-places-api

Android Google Places API “PLACES_API_QUOTA_FAILED”

穿精又带淫゛_ 提交于 2019-12-07 19:47:32
问题 Ok, so I am kinda new to Google maps/geo etc. So I went to the Google console, added an application, enabled "Places API for Android" , copy pasted the API key like this : <meta-data android:name="com.google.android.geo.API_KEY" android:value="API-KEY" /> I have an activity where I did mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(Places.GEO_DATA_API) .build(); Copy pasted the adapter from the samples code. Everything compiled

Google Places Changing Auto-complete Hint & Result Language?

牧云@^-^@ 提交于 2019-12-07 15:50:33
问题 https://google-developers.appspot.com/maps/documentation/javascript/examples/places-autocomplete I have a similar page with above google places demo. Notice that the location input field has a hint of "Enter a location". How do i change the language of this hint? And how do i change the language of the results return? I guess both of them goes to the same setting? 回答1: As per the documentation: "The API detects the browser settings of the user and set the language appropriately. It is

Google Places API can't found results

夙愿已清 提交于 2019-12-07 15:19:27
Autocomplete feature about places stopped working in my android app. I have the below code AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("GR") .setTypeFilter(AutocompleteFilter.TYPE_FILTER_REGIONS) .build(); Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY) .setFilter(typeFilter) .build(activity); activity.startActivityForResult(intent, 1009); Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case 1009: if

Google places API: from CID to reference?

孤者浪人 提交于 2019-12-07 13:44:54
问题 My objective: populate a database with known business places in order to generate maps with those places. I insist on "known places", because my users will only search for the places that are in the database. I don't want to recreate business places as markers on the map (so latitude and longitude is not enough to id a place), because the places are already available on Google Maps with interesting information (address, comments, ratings, pictures...). The natural reference is to use the CID

Google Places API in Android - API_KEY for individual users

纵饮孤独 提交于 2019-12-07 10:47:35
问题 I have gone through the Android documentation and other blogs related to using the Places API in an Android application. Everywhere it suggests to use the API_KEY to call the REST service. The API_KEY being the same throughout the project/application. There is a limitation of 1000 requests per day. Now if my application is installed by many users, then the request limit will be easily exhausted if the same key is used by everyone. There would be some way to generate the API_KEY for individual

Google Place Autocomplete Address Form after typing 5 characters

随声附和 提交于 2019-12-07 09:50:32
问题 I am using the code taken from the Google Developer website (https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform), which is indicated below. With this code, the google autocomplete address list appears below the address text-box just after typing the first character. I would like to be able to type 5 characters before the google list drops down. I look forward anyone of you could help me to get my aim. Thank you in advance! // This example

Can insert our custom data of places in google places api?

限于喜欢 提交于 2019-12-07 09:36:32
问题 Many of you has worked on LBS application in android and also used the Google Places API web service for the information of various places. And you may also noticed that the data for India specifically is not accurate means many of places that you know are not their on the map. So my question is that is there any way that you can add your database to Google's Places API Web service in the form of XML/JSON? If yes then please let me know how it is possible. Have a great day ahead!! 回答1: Places

Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0)

ぐ巨炮叔叔 提交于 2019-12-07 08:35:44
问题 Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0) import GoogleMaps import GooglePlaces are already declared on top. Here 回答1: Now, google has broken it into multiple frameworks. You need to add a new pod 'GooglePlacePicker'. 回答2: I don't see any error on your code based on this sample code. If you are using cocoapod , you need to add pod 'GooglePlaces'. Error Use of unresolved identifier usually occurs when your new class has a different Target(s)

Where do I find the Google Places API Client Library for Python?

前提是你 提交于 2019-12-07 08:20:40
问题 It's not under the supported libraries here: https://developers.google.com/api-client-library/python/reference/supported_apis Is it just not available with Python? If not, what language is it available for? 回答1: Andre's answer points you at a correct place to reference the API. Since your question was python specific, allow me to show you a basic approach to building your submitted search URL in python. This example will get you all the way to search content in just a few minutes after you

How to set correct Lat and Lng based on current location

为君一笑 提交于 2019-12-07 05:49:42
问题 My goal is to do autocomplete prediction using Google Places API, and now I want to make some kind algorithm that will take current location lat and lng, and make a prediction of places only in 100-200 km diameter. So, at this moment I get user's current location lat and lng, how to set 100-200 km? private void getCurrentLocation() { mLastLocation = LocationServices.FusedLocationApi .getLastLocation(mGoogleApiClient); if (mLastLocation != null) { double latitude = mLastLocation.getLatitude();