Place

``public struct Place : Equatable``

• ``` init(coordinate:name:address:) ```

Creates an instance of `Place`.

Declaration

Swift

``````public init(
coordinate: CLLocationCoordinate2D,
name: String? = nil,
)``````

Parameters

 ``` coordinate ``` A coordinate representing the geographic coordinate of the place. ``` name ``` A string representing the name of the place. ``` address ``` An `Address` representing the address of the place.
• ``` init(coordinate:name:address:entryPoints:) ```

Create a new `Place` instance.

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,
entryPoints: [EntryPoint] = []
)``````

Parameters

 ``` coordinate ``` The coordinate where this place is located. ``` name ``` The name of the place. ``` address ``` The `Address` information about this place. ``` entryPoints ``` An `EntryPoint` Array that contains all POIs
• ``` coordinate ```

Coordinate of the place

Declaration

Swift

``public let coordinate: CLLocationCoordinate2D``
• ``` name ```

Name of the place

Declaration

Swift

``public let name: String?``
• ``` address ```

Declaration

Swift

``public let address: Address?``
• ``` entryPoints ```

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 `a` and `b`, `a == b` implies that `a != b` is `false`.

Declaration

Swift

``public static func == (lhs: Place, rhs: Place) -> Bool``

Parameters

 ``` lhs ``` A value to compare. ``` rhs ``` Another value to compare.

Return Value

True if both places are equal.