mapbox / mapbox/MapboxGeocoder.swift
Batch reverse geocoding doesn't work
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Swift
- Star
- 133
- Fork
- 46
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I'm experiencing an issue when I triggered batch reverse geocoding. Single reverse geocoding worked for me.
Here is my batch reverse geocoding code:
let options = ReverseBatchGeocodeOptions(coordinates: coordinates)
let task = self.geocoder.batchGeocode(options) { (results, attributes, error) in
DispatchQueue.main.async {
if let error = error {
print("batch lookup error: \(error)")
}
if let results = results {
print("got results")
}
}
}
task.resume()
And here is error message:
[LocationLookUp] batch lookup error: Error Domain=NSCocoaErrorDomain Code=4864 "Expected to decode Array<Any> but found a dictionary instead." UserInfo={NSDebugDescription=Expected to decode Array<Any> but found a dictionary instead., NSLocalizedFailureReason=Permanent geocodes are not enabled for this account. Contact support@mapbox.com to enable this feature., NSUnderlyingError=0x2805972a0 {Error Domain=NSCocoaErrorDomain Code=4864 "Expected to decode Array<Any> but found a dictionary instead." UserInfo={NSDebugDescription=Expected to decode Array<Any> but found a dictionary instead., NSCodingPath=(
)}}, NSCodingPath=(
)}
How can I resolve the issue?
MapboxGeocoder.swift version is v0.11.0
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu tại điểm vào batchGeocode trong MapboxGeocoder.swift và kiểm tra cách client v0.11.0 giải mã các phản hồi theo lô cũng như hiển thị lỗi tài khoản được báo cáo. So sánh hành vi đó với phản hồi của batch reverse-geocoding API; được xem là hoàn tất khi chế độ lỗi và cách xử lý được hỗ trợ đã được ghi lại rõ ràng hoặc đã xác định được một issue tập trung ở phía client.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- swift
- Lĩnh vực
- api, mobile-dev
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100