【发布时间】:2016-01-25 05:31:06
【问题描述】:
我的目标是将来自 Google Places Android API 的自动填充结果仅限于特定国家(美国)。
我正在使用以下 API:
PendingResult<AutocompletePredictionBuffer> results =
Places.GeoDataApi
.getAutocompletePredictions(mGoogleApiClient, constraint.toString(),
mBounds, mPlaceFilter);
看起来 LatLngBounds 应该完成这项工作。
如果是,那么美国的 LatLngBounds 值是多少?
您使用哪个来源获取某个国家/地区的 LatLngBounds?
LatLngBounds 是一个矩形 - 因此它也可以在结果中包含其他国家/地区。那个怎么样?
有更好的方法吗?
【问题讨论】:
标签: android google-api google-places-api