mapbox / MapboxGeocoder.swift

Address search and reverse geocoding in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
https://www.mapbox.com/geocoding/
ISC License
131 stars 48 forks source link

Error Domain=NSCocoaErrorDomain Code=4864 "Expected to decode Array<Any> but found a dictionary instead." #207

Open 1552612373 opened 3 years ago

1552612373 commented 3 years ago

[self.geocoder geocodeWithOptions:options completionHandler:^(NSArray<MBGeocodedPlacemark > _Nullable placemarks, NSString _Nullable attribution, NSError _Nullable error) {

}]

The error is : Error Domain=NSCocoaErrorDomain Code=4864 "Expected to decode Array but found a dictionary instead."

Who can help me?

1ec5 commented 3 years ago

What options did you use in options?