Add reverse geocoding query when checking number
This commit is contained in:
parent
350ee8042a
commit
85ad7e9144
@ -1543,7 +1543,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 129;
|
CURRENT_PROJECT_VERSION = 130;
|
||||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
||||||
@ -1569,7 +1569,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 129;
|
CURRENT_PROJECT_VERSION = 130;
|
||||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
||||||
|
|||||||
@ -389,8 +389,9 @@ class CheckController: UIViewController, UITableViewDelegate, UISearchResultsUpd
|
|||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let event = try await getEvent(for: action)
|
var event = try await getEvent(for: action)
|
||||||
try? await event.findAddress()
|
event.address = try? await RxLocationManager.getAddressForLocation(latitude: event.latitude,
|
||||||
|
longitude: event.longitude)
|
||||||
return (event: event, error: nil)
|
return (event: event, error: nil)
|
||||||
} catch {
|
} catch {
|
||||||
return (event: nil, error: error)
|
return (event: nil, error: error)
|
||||||
|
|||||||
@ -48,22 +48,4 @@ public struct VehicleEventDto: Codable, Sendable {
|
|||||||
return "\(latitude), \(longitude)"
|
return "\(latitude), \(longitude)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func findAddress() async throws {
|
|
||||||
guard address == nil else {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
return RxLocationManager
|
|
||||||
.getAddressForLocation(latitude: self.latitude, longitude: self.longitude)
|
|
||||||
.map { addr in
|
|
||||||
if let realm = self.realm {
|
|
||||||
try realm.write { self.address = addr }
|
|
||||||
} else {
|
|
||||||
self.address = addr
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user