【发布时间】:2019-06-26 09:07:16
【问题描述】:
我正在使用 Mapbox Geocoder 在我们的应用中搜索地点。但是,我还需要获取附近的所有地方,例如餐馆、酒店等。Mapbox Geocoder 可以吗?
这是我们用于正向地理编码的代码,
let region = RectangularRegion(southWest: CLLocationCoordinate2DMake(swlat, swlng), northEast: CLLocationCoordinate2DMake(nelat, nelng))
let options = ForwardGeocodeOptions(query: input)
options.allowedRegion = region --> To restrict search
我可以通过 Google 自动完成来做到这一点,
但是,我不能同时使用 Mapbox 和 Google。
【问题讨论】: