Skip to content

Crash in MapboxGeocoder: nil qualifiedName - Line 485 #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tpigramVZ opened this issue Apr 25, 2024 · 0 comments
Open

Crash in MapboxGeocoder: nil qualifiedName - Line 485 #222

tpigramVZ opened this issue Apr 25, 2024 · 0 comments

Comments

@tpigramVZ
Copy link

tpigramVZ commented Apr 25, 2024

Xcode Version : 15.3
iPhone OS: iOS 17.2.1
IPhone Model: iPhone XS Max
MapboxGeocoder Version: ~0.15
MapboxSearch: >= 2.0.0-rc.3, < 2.0
MapboxMaps: ~> 11.3.0

When attempting to reverse geocode using a CLLocationCoordinate2D, it is crashing when force unwrapping "qulifiedName"

let options = ReverseGeocodeOptions(coordinate: point)
let geoCoder = Geocoder(accessToken: <access token>)
geoCoder.geocode(options) { placemarks, attribution, error in
    guard let placemark = placemarks?.first else { return }
    dump(placemark)
}

MapboxGeocoder/MBPlacemark.swift:485: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy