Place
public struct Place : Equatable
Represents information about specific place.
-
Creates an instance of
Place.Declaration
Swift
public init( coordinate: CLLocationCoordinate2D, name: String? = nil, address: Address? = nil )Parameters
coordinateA coordinate representing the geographic coordinate of the place.
nameA string representing the name of the place.
addressAn
Addressrepresenting the address of the place. -
Create a new
Placeinstance.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init( coordinate: CLLocationCoordinate2D, name: String? = nil, address: Address? = nil, entryPoints: [EntryPoint] = [] )Parameters
coordinateThe coordinate where this place is located.
nameThe name of the place.
addressThe
Addressinformation about this place.entryPointsAn
EntryPointArray that contains all POIs
-
Coordinate of the place
Declaration
Swift
public let coordinate: CLLocationCoordinate2D -
Name of the place
Declaration
Swift
public let name: String? -
Address of the place
Declaration
Swift
public let address: Address? -
A list of entrances to the POI.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let entryPoints: [EntryPoint] -
Returns a Boolean value indicating whether two values are equal. The coordinates of both values are compared with a small margin of error to accomodate for some roundup error typical for floating-point values.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Swift
public static func == (lhs: Place, rhs: Place) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
Return Value
True if both places are equal.
TomTom SDK for iOS (0.53.1)
Place