Structures

The following structures are available globally.

ConnectorDetails

  • Information about one of the connectors available in the ChargingPark.

    See more

    Declaration

    Swift

    public struct ConnectorDetails

GeoJSON

  • Common protocol for every geometry type. Generic geometry type.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct GeoJSON<T>

GeometryCollection

  • An array of geometries.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct GeometryCollection

GeoJSONPosition

  • GeoJSONPosition

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct GeoJSONPosition

BoundingBox

  • The smallest rectangular area within which all the coordinates lie.

    See more

    Declaration

    Swift

    public struct BoundingBox : Equatable, Hashable

GeometryData

  • GeoJSON represeted by GeometryData

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct GeometryData

Feature

  • Feature

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Feature

Geometry

  • Geometry

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Geometry
  • A collection of information that describes geographical location

    See more

    Declaration

    Swift

    public struct Address
  • Information on how much to charge at a charging station.

    See more

    Declaration

    Swift

    public struct ChargingInformation

Place

  • Represents information about specific place

    See more

    Declaration

    Swift

    public struct Place : Equatable
  • Extending standard structures like Measurement with properties like var meters is convenient:

    • it allows to avoid extracting value without conversion
    • it simplifies getting value from an optional Measurement But it is also risky because these extensions might conflict with extensions from other libs or Apple. This decorator mitigates the risk of conflicts while providing a short, readable code. Typical use cases are:
    • let optionalDistanceInMeters = distance?.tt.meters
    • cumulativeDistance += anotherDistance.tt
    • if delay < .tt.seconds(5) {}
    • let intValue = distance.tt.intValue(in: .meters)

    Declaration

    Swift

    public struct MeasurementDecorator<UnitType> where UnitType : Unit

Cause

  • Indicates the cause of a traffic event.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Cause

TrafficEvent

  • Representation of a traffic event. Traffic events represent unusual situations on the road, like traffic congestion, accidents or road works.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct TrafficEvent

EquatableWrapper

  • Wrapper to provide equatable conformance to Apple objects inside of SDK

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct EquatableWrapper<T> : Equatable

AltitudeChangeEfficiency

  • Specifies the ratio by which energy is converted for altitude changes.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct AltitudeChangeEfficiency : Equatable, Hashable

AltitudeChangeEnergy

  • Specifies the energy that is gained or lost by altitude changes.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct AltitudeChangeEnergy : Equatable, Hashable

ChargeLevel

  • Describes capacity and current charge of the EV.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct ChargeLevel

Pedestrian

  • A pedestrian.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Pedestrian : Vehicle

Bicycle

  • A vehicle of type bicycle.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Bicycle : Vehicle

Car

  • Car

    A vehicle of type car.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Car : Vehicle, Motorized

Motorcycle

  • A vehicle of type motorcycle.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Motorcycle : Vehicle, Motorized

Van

  • Van

    A vehicle of type van.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Van : Vehicle, Motorized

Taxi

  • A vehicle of type taxi.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Taxi : Vehicle, Motorized

Bus

  • Bus

    A vehicle of type bus.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct Bus : Vehicle, Motorized

Truck

VehicleDimensions

  • Describes dimensions of the vehicle.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct VehicleDimensions

VelocityChangeEfficiency

  • Specifies the ratio by which energy is converted during velocity changes.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct VelocityChangeEfficiency : Equatable, Hashable