Structures
The following structures are available globally.
-
Information about one of the connectors available in the
ChargingPark
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct ConnectorDetails
-
// An array of geometries.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct GeometryCollection
-
GeoJSONPosition
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct GeoJSONPosition : Decodable
-
Important
This is a Public Preview API. It may be changed or removed at any time. The smallest rectangular area within which all the coordinates lie.Declaration
Swift
public struct BoundingBox : Equatable, Hashable
-
GeoJSON represeted by
GeometryData
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct GeometryData
-
Declaration
Swift
public struct Feature
-
Declaration
Swift
public struct Geometry
-
A collection of information that describes geographical location
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Address
-
Information on how much to charge at a charging station.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct ChargingInformation
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct GeoLineSegment
-
GeoLocation is a wrapper for CLLocation class.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct GeoLocation
extension GeoLocation: Equatable
-
Represents location matched to the map.
See moreDeclaration
Swift
public struct MatchedLocation
-
Represents information about specific place
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Place : Equatable
-
Protobuf-encoded map tile data.
The format of the tile data is formally described using the protobuf schema available on: https://developer.tomtom.com/map-display-api/documentation/vector/content#schema-data
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct MapTile
-
Map tile options.
Detailed explanation of values can be found on: https://developer.tomtom.com/map-display-api/documentation/zoom-levels-and-tile-grid
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct MapTileOptions
-
Extending standard structures like
Measurement
with properties likevar 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)
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct MeasurementDecorator<UnitType> where UnitType : Unit
-
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.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct AltitudeChangeEfficiency
-
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.Declaration
Swift
public struct AltitudeChangeEnergy
-
Describes capacity and current charge of the EV.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct ChargeLevel
-
Describes dimensions of the vehicle.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct VehicleDimensions
-
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.Declaration
Swift
public struct VelocityChangeEfficiency