google-places-api

Can android certificate fingerprint sha1 use in firebase and Google Place API?

一世执手 提交于 2019-12-13 17:05:06
问题 I would like to know if we can use the same certificate fingerprint SHA1 in Firebase and for Google Maps API? Before this, I'm using my certificate fingerprint SHA1 for Firebase Sign-In authorization. However, for Google Places API, I have to use a certificate fingerprint SHA1 too. First, I deleted fingerprint SHA1 at Firebase console and add it into Google Places API. Next, I add the fingerprint SHA1 at Firebase,but I'm getting a message saying: An error occurred when attempting to modify an

Get redirected URL from URL [duplicate]

拜拜、爱过 提交于 2019-12-13 12:35:20
问题 This question already has an answer here : Firefox live http headers, curley braces after Cache-Control: no-cache (1 answer) Closed 6 years ago . The title is quite cryptic but essentially whats happening is I'm calling the Google Places Photo API with the following url https://maps.googleapis.com/maps/api/place/photo?key=123456789&photoreference=CnRvAAAAV_35nLjUhcQXkoVdwN2YGP58Z3trNMDCRXznXqR2_0FbxXv60ssT2JN0ryI_ZP9-371u3JycqlH5oxLy8

Is it possible to filter the GMSPlacePicker based on place type/category

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 12:18:05
问题 Using the new google places api for ios, is it possible to filter the results returned via GMSPlacePicker based on place type/category. For example, if I want to return all the gas_station types nearby. Basically, I'm looking for something like GMSAutocompleteFilter, but for GMSPlacePicker. 回答1: You can do a HTTP Nearby Search Request, in the request parameter you can set the types=gas_station . In iOS, you can use NSURLSession to do a http request. Sample code: let requestURL = "https://maps

Creating a place type filter for the Place Autocomplete API for Android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 12:10:44
问题 This API seems to be fairly new so there aren't many questions about it here, nor many tutorials. I followed Google's tutorial and got the Autocomplete Android api working in my app. I'm now trying to use the AutocompleteFilter to restrict my results to a certain region or certain types of places. There seems to be little to no documentation for a beginner like me explaining what to do. The AutocompleteFilter requires a Collection object. How do I change the the following values into integers

Google Places API: OVER_QUERY_LIMIT

左心房为你撑大大i 提交于 2019-12-13 09:14:31
问题 I am getting an error notifying me of exceeding the API Quota. However, I have a quota of 150,000 requests and have only used up 12,000 of them. What is causing this error? example of code: from googleplaces import GooglePlaces api_key = '' google_places = GooglePlaces(api_key) query_result = google_places.nearby_search(location="Vancouver, Canada", keyword="Subway") for place in query_result.places: print(place.name) Error Message: googleplaces.GooglePlacesError: Request to URL https://maps

Google Places API web service using swift returns error 303

南笙酒味 提交于 2019-12-13 05:42:59
问题 I am trying to use the Google Places Web Service through iOS (using swift). The reason I want to do so - I want to allow browsing places on a map, even if they are not nearby (the only search allowed using the iOS provided library). I also need to do it programmatically (since in one use-case I want to allow browsing the map, while in another use case - I want the places to be constant and not change based on the map camera). I can't use the iOS place picker, since I want the map to display

Google Places API nearby search rankby distance skipping some nearest places

拈花ヽ惹草 提交于 2019-12-13 05:19:12
问题 I want to search all nearby places form a certain position. I came to know that it can be done by using Google Places API nearby search by passing rankby=distance in parameter. As it is necessary to pass one of these three parameter name , keyword , or type when we are using rankby=distance parameter in query. So I gave type=establishment in the query and its working but not as i wanted. Problem with the query is that it is not returning all the the nearest places. What should I use to get

How to use Google Places API in Android?

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:45:46
问题 I know the URL of accessing the google places. check here But I am not able to parse the data coming from the URL in XML format. So, tell me the mechanism to display the data coming from google places API in xml format. Please tell me some sample code or any tutorial for it. Thanks in advance 回答1: You can parse it by Json. if you see your url contains xml here . This will give response in xml. output with xml: <PlaceSearchResponse> <status>REQUEST_DENIED</status> </PlaceSearchResponse> Just

Guzzle ~6 and Google Place API - error when using pagination (pagetoken)

╄→гoц情女王★ 提交于 2019-12-13 03:26:39
问题 I'm trying to get a set of universities near a couple of locations (lat/lng). To do so I'm using the Google Maps Places API Web Services and this small script in PHP with Guzzle ~6.0 . I'm using this code to fetch Google APIs: $positions = [ [51.388667, 2.557513], // <- no next_page_token [51.388667, 2.750000], // <- next_page_token ]; foreach($geo in $positions) { getJsonPlacesResponse($geo); } function getJsonPlacesResponse($geo) { $lat = $geo[0]; $lng = $geo[1]; if ($lat == 'Latitude')

PlacePicker closes immidiately , migrating from Places SDK for Android to Google Places API causing error

我与影子孤独终老i 提交于 2019-12-13 02:48:56
问题 I was using old Places SDK for Android but now its getting depreciated to so i tried to use the new Places SDK from google. I am using the same code with compat library but having some error again and again. I am trying to use Placepicker in my app. I have created an API key for the same and added to my strings. but when i open the place picker it just crashes with log Timeline: Activity_launch_request time:126708460 intent:Intent { act=com.google.android.gms.location.places.ui.PICK_PLACE pkg