Location
@objcMembers
final class Location : Object, PlaceMappable, ServiceProvider
extension Location: PlaceInfo
Realm representation of a MTP location
-
Link to the Mappable object for this location
Declaration
Swift
dynamic var map: Mappable? -
Whether this is a country or a location
Declaration
Swift
dynamic var adminLevel: Int -
Airports to be found in this location
Declaration
Swift
dynamic var airports: String -
Country ID
Declaration
Swift
dynamic var countryId: Int -
Description of country
Declaration
Swift
dynamic var placeCountry: String -
Place’s MTP ID
Declaration
Swift
dynamic var placeId: Int -
Region containing the country
Declaration
Swift
dynamic var placeRegion: String -
Title to display to user
Declaration
Swift
dynamic var placeTitle: String -
Difficulty rank of location
Declaration
Swift
dynamic var rank: Int -
Difficulty rank of UN country
Declaration
Swift
dynamic var rankUn: Int -
For use in constructing weather information URL
Declaration
Swift
dynamic var weatherhist: String -
Constructor from MTP endpoint data
Declaration
Swift
convenience init?(from: LocationJSON) -
Placeholder for selection screens
Declaration
Swift
static var all: Location -
Declaration
Swift
override var description: String { get } -
Equality operator
Declaration
Swift
override func isEqual(_ object: Any?) -> BoolParameters
objectOther object
Return Value
equality
-
Country’s MTP ID
Declaration
Swift
var placeCountryId: Int { get } -
MTP location containing place
Declaration
Swift
var placeLocation: Location? { get } -
Subtitle to display to user
Declaration
Swift
var placeSubtitle: String { get } -
Special cases to treat as if they’re flattenable
See moreDeclaration
Swift
enum Inexpandibles : Int -
Whether the place is a country
Declaration
Swift
var placeIsCountry: Bool { get } -
URL of flag image
Declaration
Swift
var flagUrl: URL? { get } -
Whether location is country
Declaration
Swift
var isCountry: Bool { get } -
Map marker latitude
Declaration
Swift
var latitude: CLLocationDegrees { get } -
Map marker longitude
Declaration
Swift
var longitude: CLLocationDegrees { get }
View on GitHub
Location Class Reference