jjzjj

getAutocompletePredictions

全部标签

Android Google Places API,getAutocompletePredictions 返回状态 'PLACES_API_ACCESS_NOT_CONFIGURED'

我在使用AndroidGooglePlacesAPI-自动完成功能时遇到问题。我使用的key与用于AndroidGoogleMapsAPI的key相同(在文档中,这样写是可以的)。这是我在list中的定义:但getAutocompletePredictions会返回“PLACES_API_ACCESS_NOT_CONFIGURED”消息作为状态。这是我的Java代码:GoogleApiClientgoogleApiClient=newGoogleApiClient.Builder(context).addApi(Places.GEO_DATA_API).addApi(Places.PL

Android Google Places API,getAutocompletePredictions 返回状态 'PLACES_API_ACCESS_NOT_CONFIGURED'

我在使用AndroidGooglePlacesAPI-自动完成功能时遇到问题。我使用的key与用于AndroidGoogleMapsAPI的key相同(在文档中,这样写是可以的)。这是我在list中的定义:但getAutocompletePredictions会返回“PLACES_API_ACCESS_NOT_CONFIGURED”消息作为状态。这是我的Java代码:GoogleApiClientgoogleApiClient=newGoogleApiClient.Builder(context).addApi(Places.GEO_DATA_API).addApi(Places.PL

android - GeoDataApi.getAutocompletePredictions() 中 LatLngBounds 的用途是什么?

GooglePlacesAutocompleteAPI中使用的LatLngBounds对象是什么?..和/或它是什么意思:biasingtheresultstoaspecificareaspecifiedbylatitudeandlongitudebounds?在GooglePlacesAutocomplete文档中,它说要传入LatLngBounds和AutocompleteFilter。PendingResultresult=Places.GeoDataApi.getAutocompletePredictions(mGoogleApiClient,query,bounds,auto

java - Places.GeoDataApi.getAutocompletePredictions

我在使用AndroidGooglePlacesAPI-自动完成功能时遇到问题。我正在尝试使用Places.GeoDataApi.getAutocompletePredictions()获取placeId的方法,但是,它不起作用。(输出甚至不显示“无法获取值”)谁能帮帮我?这是我的Java代码:PendingResultresult=Places.GeoDataApi.getAutocompletePredictions(mGoogleApiClient,query,mLatLonBounds,null);result.setResultCallback(newResultCallbac