Place
struct Place
A place defined by coordinates and optional additional locality information.
-
The coordinates of the place. (required)
Declaration
Swift
public let coordinates: Geo.Coordinates -
The full name and address of the place.
Declaration
Swift
public let label: String? -
The numerical portion of the address of the place, such as a building number.
Declaration
Swift
public let addressNumber: String? -
The name for the street or road of the place. For example, Main Street.
Declaration
Swift
public let street: String? -
The name of the local area of the place, such as a city or town name. For example, Toronto.
Declaration
Swift
public let municipality: String? -
The name of a community district.
Declaration
Swift
public let neighborhood: String? -
The name for the area or geographical division, such as a province or state name, of the place. For example, British Columbia.
Declaration
Swift
public let region: String? -
An area that’s part of a larger region for the place. For example, Metro Vancouver.
Declaration
Swift
public let subRegion: String? -
A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying the place.
Declaration
Swift
public let postalCode: String? -
The country of the place.
Declaration
Swift
public let country: String? -
init(coordinates:label: addressNumber: street: municipality: neighborhood: region: subRegion: postalCode: country: ) Initializer
Declaration
Swift
public init( coordinates: Coordinates, label: String?, addressNumber: String?, street: String?, municipality: String?, neighborhood: String?, region: String?, subRegion: String?, postalCode: String?, country: String? )
View on GitHub