@@ -142,6 +142,7 @@ public class LocationsViewModel {
...
@@ -142,6 +142,7 @@ public class LocationsViewModel {
place.city=hit.object.localeNames?.first
place.city=hit.object.localeNames?.first
place.state=hit.object.administrative?.first
place.state=hit.object.administrative?.first
place.stateCode=USStateCode.stateCode(for:place.state)// if it's not US, it will not work, but this attribute was not filled otherwise anyway, so it's our best guess
place.country=hit.object.country??""// ?? "" part is from the Android code, may be not needed on iOS
place.country=hit.object.country??""// ?? "" part is from the Android code, may be not needed on iOS
place.countryCode=hit.object.countryCode?.rawValue.uppercased()??""// ?? "" part is from the Android code, may be not needed on iOS
place.countryCode=hit.object.countryCode?.rawValue.uppercased()??""// ?? "" part is from the Android code, may be not needed on iOS