Ios - Google places SDK - Get places by location , not by Text

巧了我就是萌 提交于 2020-01-05 03:55:12

问题


I'm trying to show places on the map. For some reason, I can't find a function that receives the places by location.

The only function that I see is the

GMSPlacesClient

- (void)autocompleteQuery:(NSString *)query
                   bounds:(GMSCoordinateBounds * GMS_NULLABLE_PTR)bounds
                   filter:(GMSAutocompleteFilter * GMS_NULLABLE_PTR)filter
                 callback:(GMSAutocompletePredictionsCallback)callback;

The problem with this function, that it is searching only by text - I can insert filters, but i also need to insert a specific query/place to autocomplete.

What is the right way to retrieve places by the location of the map?

来源:https://stackoverflow.com/questions/32767600/ios-google-places-sdk-get-places-by-location-not-by-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!