You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A query for nayar to the Mapbox geocoding API returns a response (pasted in the details tag below) which includes a feature that has a wikidata property of null. This seems to cause MapboxGeocoder.swift to crash.
This is the feature, found in the context array of the fifth result:
It's unclear at the moment why the Wikidata property is null (usually the property is just omitted), but it looks like the assertion that the property starts with Q can't handle a null value.
I can't find any issues with the null handling but searching for "nayara" returns a placemark with a leading whitespace (" Q10116") which triggers an assertion.
Original report found on StackOverflow: https://stackoverflow.com/questions/49426512/mapbox-geocoding-keyword-issue/
A query for
nayar
to the Mapbox geocoding API returns a response (pasted in thedetails
tag below) which includes a feature that has awikidata
property ofnull
. This seems to cause MapboxGeocoder.swift to crash.This is the feature, found in the context array of the fifth result:
It's unclear at the moment why the Wikidata property is null (usually the property is just omitted), but it looks like the assertion that the property starts with
Q
can't handle anull
value.The text was updated successfully, but these errors were encountered: