English 中文(简体)
An error occurs when AddressAutofill is used to query address information by CLLocationCoordinate2D
原标题:
func getLocationAddress() {
        let centerCoordinate = CLLocationCoordinate2D(latitude: -34.005676, longitude: 138.795836)//mapView.centerCoordinate
        addressAutofill.suggestions(for: centerCoordinate) { [weak self] result in
            guard let self = self else { return }
            switch result {
            case .success(let suggestions):
                if let first = suggestions.first {
                    self.addressAutofill.select(suggestion: first) { [weak self] result in
                        guard let self = self else { return }
                        if case .success = result {
                        } else {
                        }
                    }
                }
            case .failure(let error):
                print("error = (error)")
            }
        }
    }
error = generic(code: 422, domain: "MapboxCoreSearchErrorDomain", message: "Type "countryregionpostcodedistrictplacelocalityneighborhoodaddressstreetpoi" is not a known type. Must be one of: country, region, place, district, locality, postcode, neighborhood, address, poi, poi.landmark")

mapbox-search-ios version: 1.0.0-rc.4

try:
1、The official demo has the same problem
2、‘options’ 、‘countries’ 、‘language’ has the same problem

问题回答

暂无回答




相关问题
Jerky canvas animation on Mapbox map

I m trying to animate canvas marker along the route on Mapbox map (mapbox-gl). But canvas animation looks really jerky, especially when animation is slow. Here is the example https://codepen.io/vps-...

姆克地图箱在 j顶点击手ler

我要说的是,我有一个地图箱。 地图箱地图有一只浮筒,在浮点击手背上,称为功能:

Mapbox dependencies failed to resolve

I had to adjust some packages in my Xcode project. Currently the entire project is broken and I am faced with this. Failed to resolve dependencies Dependencies could not be resolved because mapbox-...

热门标签