Structures
The following structures are available globally.
-
Information about one of the connectors available in the
See moreChargingPark.Declaration
Swift
public struct ConnectorDetails
-
Generic container for GeoJSON geometry types.
See moreDeclaration
Swift
public struct GeoJSON<T>
-
An array of geometries.
See moreDeclaration
Swift
public struct GeometryCollection
-
Fundamental geometry construct. All other GeoJSON geometry types are built based on it.
See moreDeclaration
Swift
public struct GeoJSONPosition
-
The smallest rectangular area within which all the coordinates lie.
See moreDeclaration
Swift
public struct BoundingBox : Equatable, Hashable
-
GeoJSON represented by
See moreGeometryData.Declaration
Swift
public struct GeometryData
-
Defines a simple geographical feature such as a point, polygon, etc.
See moreDeclaration
Swift
public struct Feature
-
A representation of an entry point for a POI.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct EntryPoint
-
Represents information about specific place
See moreDeclaration
Swift
public struct Place : Equatable -
Extending standard structures like
Measurementwith properties likevar metersis convenient:- it avoids extracting value without explicit conversion to a certain unit
- it simplifies getting value from an optional
MeasurementBut it is also risky because these extensions might conflict with extensions from other libraries or Apple. This decorator mitigates the risk of conflicts while providing a short, readable code. Typical use cases are: - extracting value from a value representing a unit of measure:
let optionalDistanceInMeters = distance?.tt.meters - performing computations on values representing units of measure:
cumulativeDistance += anotherDistance.tt - comparing values representing units of measure:
if delay < .tt.seconds(5) {} - combining value extraction and typecast:
let intValue = distance.tt.intValue(in: .meters)
Declaration
Swift
public struct MeasurementDecorator<UnitType> where UnitType : Unit
-
Indicates the cause of a traffic event.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Cause
-
Representation of a traffic event. Traffic events represent unusual situations on the road, like traffic congestion, accidents or road works.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct TrafficEvent
-
Wrapper to provide equatable conformance to Apple objects inside of SDK
See moreDeclaration
Swift
@propertyWrapper public struct EquatableWrapper<T> : Equatable
-
Specifies the ratio by which energy is converted for altitude changes.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct AltitudeChangeEfficiency : Equatable, Hashable
-
Specifies the energy that is gained or lost by altitude changes.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct AltitudeChangeEnergy : Equatable, Hashable
-
Describes capacity and current charge of the EV.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct ChargeLevel
-
Describes connector information of an electric engine.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct ChargingConnector : Equatable, Hashable
-
Describes connector information of an electric engine.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct ChargingParameters
-
A vehicle of type truck.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Truck : Vehicle, Motorized, CargoCapable
-
Describes dimensions of the vehicle.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct VehicleDimensions
-
Describes vehicle model identifier.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct VehicleModelID : Equatable
-
Specifies the ratio by which energy is converted during velocity changes.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct VelocityChangeEfficiency : Equatable, Hashable
Structures Reference