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
If I reverse geocode a point in the water of the San Francisco Bay, "California" does not appear as an administrativeRegion on the MBGeocodedPlacemark. If I print the addressDictionary of the placemark, I see that the name is California, but it is not placed under the state key.
{
ISOCountryCode = US;
country = "United States";
formattedAddressLines = (
"United States"
);
name = California;
}
This makes it challenging to properly format and display reverse geocode data that is powered by a dynamic location at run time. If I reverse geocode a location that has a street address, it likely has a state field.
Below is the addressDictionary of a reverse geocode coordinate in downtown San Francisco. The state is now there. (37.794291209161685, -122.412848997168)
{
ISOCountryCode = US;
city = "San Francisco";
country = "United States";
formattedAddressLines = (
"1187 Washington Street",
"San Francisco",
"California 94108",
"United States"
);
name = "Washington Street";
postalCode = 94108;
state = California;
street = "Washington Street";
subAdministrativeArea = "San Francisco";
subLocality = "Nob Hill";
subThoroughfare = 1187;
thoroughfare = "Washington Street";
}
The text was updated successfully, but these errors were encountered:
johnnewman
changed the title
Expected fields do always not appear in the MBGeocodedPlacemark
Expected fields do not always appear in the MBGeocodedPlacemark
Nov 14, 2018
The same behavior applies to all the other “Accessing Containing Placemarks” properties, such as postalCode. The fix would be to conditionally fall back to self if self has a matching scope.
Using v0.10.0.
If I reverse geocode a point in the water of the San Francisco Bay, "California" does not appear as an
administrativeRegion
on the MBGeocodedPlacemark. If I print theaddressDictionary
of the placemark, I see that thename
is California, but it is not placed under thestate
key.Sample code:
Output:
This makes it challenging to properly format and display reverse geocode data that is powered by a dynamic location at run time. If I reverse geocode a location that has a street address, it likely has a
state
field.Below is the
addressDictionary
of a reverse geocode coordinate in downtown San Francisco. Thestate
is now there. (37.794291209161685, -122.412848997168)The text was updated successfully, but these errors were encountered: