PersonalLocation
public struct PersonalLocation
A single personal location of the current user of the application.
If this location has been explicitly saved by the user as a personal location (for example, home or work),
it has the respective type set in PersonalLocation.types.
If it has been recently visited (and is part of recent destinations) lastVisit is set.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Type of a personal location.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum PersonalLocation.`Type` -
Unique identifier of this personal location.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let id: UUID -
The geographical location of this personal location.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let place: TomTomSDKCommon.Place -
User-friendly name for this personal location.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var name: String -
Set of types of this personal location. A personal location can have multiple types.
Note
Some types are unique (e.g.,home,work) and can’t be attached to more than one personal location.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public internal(set) var types: Set<PersonalLocation.Type> { get } -
Date when this location was visited the last time. Set only for locations that have been recently visited.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public internal(set) var lastVisit: Date? { get } -
Indicates if this personal location has a charger available to the user.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var hasPrivateCharger: Bool
TomTom SDK for iOS (0.53.1)
PersonalLocation