google-places

How to get Places.GeoDataApi.getAutocompletePredictions ONLY inside the bounds?

99封情书 提交于 2019-12-29 07:02:07
问题 I am using Places.GeoDataApi for Android and I get different search results depending on the location of the device performing the request. I need the results to be consistently located inside the bounds. I don't see where that could be setup in the getAutocompletePredictions request. Is there anything I am missing? I get address/place autocomplete suggestions using the GoogleApiClient and Places API through: Places.GeoDataApi.getAutocompletePredictions() The method requires a GoogleApiClient

Place Autocomplete not working properly Android

為{幸葍}努か 提交于 2019-12-25 18:33:47
问题 I have added the Place Autocomplete to my app but when I touch the search button it comes and then disappearing. I couldn't type in the search it disappearing. Disappearing means there's search bar but if we touch googles search bar will come out and we can type there. But It's coming and then it suddenly disappears. This is the code in XML. <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android

Place Autocomplete not working properly Android

China☆狼群 提交于 2019-12-25 18:33:39
问题 I have added the Place Autocomplete to my app but when I touch the search button it comes and then disappearing. I couldn't type in the search it disappearing. Disappearing means there's search bar but if we touch googles search bar will come out and we can type there. But It's coming and then it suddenly disappears. This is the code in XML. <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android

Can't get google maps to show behind Google Places in my app (only grid)

左心房为你撑大大i 提交于 2019-12-25 06:16:41
问题 I have this code from the tutorial Android Working with Google Places and Maps, and I want to change it, because I need it to work with google maps v2. The problem is that instead of the map, I only get a grid behind google places. PlacesMapActivity.java package com.androidhive.googleplacesandmaps; import java.util.List; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.util.Log; import com.google.android.maps.GeoPoint; import

React google place autocomplete not providing photo_ref

扶醉桌前 提交于 2019-12-25 03:21:43
问题 I am integrating google place autocomplete here is the response I am getting But not getting photo_reference "photo_reference": "CmRaAAAAsenfgCCe_GGl3-ekxAP2CVLJCUYk-Egp-AyE8894bNpkhOaLliIY2WhR8PnF88NYKj7JuLqla0YCjaDYqta_2uDf2zB2_LTefzdHZj0bIt7BllyUQikoQlaCmUjYeaOCEhDn7j-qk3BLIzhaoSIRXFEBGhRioSf-plEkiNMC2S4Xd5BJnjDOZg" Is there any option to get the photo_reference in it? Thank you!!! 来源: https://stackoverflow.com/questions/53479415/react-google-place-autocomplete-not-providing-photo-ref

Why is “natural_feature” excluded from Google Maps Geocoding and Places API searches?

两盒软妹~` 提交于 2019-12-24 17:28:45
问题 Trying to mimic the 'what's here' feature of Google Maps in my own website but it seems that items of type 'natural_feature' are excluded from Google Maps 3 API geocoding and places searches, both nearby and radar, and also on text searches unless the EXACT name of the place is provided. This must have been an informed choice by Google to do this - anyone know the rationale, and better, offer a workaround? Seems crazy that I can't get the names of woods, nature reserves etc. any more... 回答1:

Google Places API quota exceed [duplicate]

梦想的初衷 提交于 2019-12-24 11:12:16
问题 This question already has answers here : “You have exceeded your request quota for this API” in Google Map [duplicate] (2 answers) Closed last year . I have been trying to get similar types of places using google places api. Here's code /** * Method to search certain type of place using Places API * Uses latitude and longitude from global variable */ private void getPlaces() { apiList = getResources().getStringArray(R.array.apiList); int randomIndex = new Random().nextInt(apiList.length);

Setting Google Places 'Types' on Dropdown Input

强颜欢笑 提交于 2019-12-24 07:15:15
问题 I'm using the Google Places API to list pick up and drop off locations for a transportation service. We have two fields that, when typed in, autosuggest results. When a a dropdown, #transport-type, is set to the first option, value = 1, then the input field, #pick-up-location, should have 'types' airport added to its results. JS: function transport_types() { if ($('#transport-type').val() == 1) { var input = document.getElementById('pick-up-location'); var options = { types: ['airport'] };

Google Places Autocomplete, filter by establishments/restaurants

瘦欲@ 提交于 2019-12-24 00:23:23
问题 I can use the API to search by establishments as shown in their guides(https://developers.google.com/places/ios-api/autocomplete), however I also know that a GMSPlace has a type, which can be a coffee shop/restaurant. The ios api doesn't seem to have a simple "place search" like the web service does, it's either PlaceID search, or autocomplete. Can I use the Autocomplete and filter my results based on the type? 回答1: You can use GMSAutocompleteFilter to filter out establishment. establishment

Google Places Nearby Search

陌路散爱 提交于 2019-12-23 09:56:27
问题 I'm trying to fetch a local BMW repair facility for Dortmund, Germany. According to Google Maps, there is a BMW dealer nearby to location 51.48488,7.4687013. The following request matches the above mentioned dealer: maps.googleapis.com/maps/api/place/nearbysearch/json?location=51.4842556,7.474081&radius=20000&language=en&name=BMW&key=API_KEY { "name": "BMW Niederlassung Dortmund", ..., "types": [ "car_repair", "car_dealer", "store", "point_of_interest", "establishment" ], ..., "vicinity":