google-places-api

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

Google places API return a single type “car_repair”

て烟熏妆下的殇ゞ 提交于 2019-11-29 05:55:57
I'm using Google places API and it is returning all the places in my location. However I only want it to return a type for "car-repair" I think I nearly have it but I'm missing something if anyone could guide me in the right direction it would be great :) My Code so far PlacPickerActivity import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Html; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.google.android.gms.common

Google API keys - What is server key and browser key

亡梦爱人 提交于 2019-11-29 05:13:19
问题 I ma using google maps in my app, and use the URL as following format without the API key- values, <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=SET_TO_TRUE_OR_FALSE"> </script> Now I need to use the API key to track the requests, according to the examples it needs to add another API key query string parameter, <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=SET_TO_TRUE_OR_FALSE"> </script> But, I received 2

Google Maps Autocomplete WITHOUT Atmosphere Data

非 Y 不嫁゛ 提交于 2019-11-29 03:10:21
问题 I am currently using the Google Maps Places Autocomplete Javascript API to let users select a location by searching for the address or establishment name. Example code: autocomplete = new google.maps.places.Autocomplete(input); google.maps.event.addListener(autocomplete, 'place_changed', function () { console.log(autocomplete.getPlace()); }); This gets the following data. { "address_components":[ { "long_name":"1600", "short_name":"1600", "types":[ "street_number" ] }, { "long_name":

You have exceeded your daily request quota for this API. Google Places API iOS Swift

纵饮孤独 提交于 2019-11-29 03:00:20
问题 I am trying to use Google Places API in a very simple app. I just want to locate all the shopping malls near the current location. I used this web service: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.9412390245245,77.6171295438685&radius=1000&sensor=true&types=shopping_mall&key=MY_SERVER_KEY It was working, but now I am getting the following error message: { "error_message" : "You have exceeded your daily request quota for this API.", "html_attributions" : [],

Google Places get LatLng

雨燕双飞 提交于 2019-11-29 02:52:35
问题 I am using the Autocomplete method to get Place Suggestions and when I click the Place I want to choose, I want to extract the Lat and Lng which is placed under place.geometry.location as below. As per my observation, the keys ib and jb keep changing with every session. Is there any way I can extract the Lat and Lng predictably? $(document).ready(function() { var mapOptions = { center : new google.maps.LatLng(-33.8688, 151.2195), zoom : 13, mapTypeId : google.maps.MapTypeId.ROADMAP }; var map

Search all places in given city name

巧了我就是萌 提交于 2019-11-29 02:30:54
Right now i am using Google Places API for fetching Restaurant list in particular city, query like https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=AddYourOwnKeyHere But the problem here is that we can only have 20 result and with help of next_page_token in the response we can again fetch 20 more, by this we can only have 60 result. Mention on Google Places API page The maximum number of results that can be returned is 60 So is there any other authentic way to fetch all the Restaurant details. Just for information : I am implementing this in

Restrict Autocomplete search to a particular country in Google Places Android API

烂漫一生 提交于 2019-11-29 01:15:45
My goal is to restrict the Autocomplete results from the Google Places Android API to a particular country (United States) only. I am using the following API: PendingResult<AutocompletePredictionBuffer> results = Places.GeoDataApi .getAutocompletePredictions(mGoogleApiClient, constraint.toString(), mBounds, mPlaceFilter); Looks like LatLngBounds is supposed to do this job. If yes, then what are the values of LatLngBounds for United States? Which source did you use to get LatLngBounds for a country? LatLngBounds is a rectange - so it can include other countries in the result as well. What about

Android studio can not resolve com.google.android.gms.location.places.AutocompleteFilter

北城以北 提交于 2019-11-29 01:13:08
I am trying to implement a autocomplete places search following this article. http://www.truiton.com/2015/04/android-places-api-autocomplete-getplacebyid/ I have followed all steps, and also added proper dependencies in my build.gradle file. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.google.android.gms:play-services:6.5.87' } Also here are the meta data section in my manifest. <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <meta-data android

Android Place Picker (PlacePicker) no longer has Search icon after updating to Google Play Services 9.0.83

女生的网名这么多〃 提交于 2019-11-28 21:58:55
Very recently some of my users began reporting that the search icon had disappeared from the PlacePicker UI widget. I was able to isolate the issue to updating to Google Play Services 9.0.83. Has anybody found a workaround to get the search icon back again? Update: I also noticed that the setLatLngBounds() method of the PlacePicker.IntentBuilder class no longer functions properly after updating to 9.0.83. It centers the map at 0 lat, 0 long out in the Ocean off the coast of Africa. As long as I do not invoke setLatLngBounds() the PlacePicker will center in on my current location. Update: I