Package-level declarations

Pure kotlin data classes for Turn By Turn interfaces

Types

Link copied to clipboard

Defines condition

Link copied to clipboard
data class PMConditionSpeeds(val condition: PMCondition, val speedLimit: Float = 0.0f, val countrySpeedUnits: PMSpeedUnits)

Defines speed limits for given condition

Link copied to clipboard

Defines road signs style

Link copied to clipboard
data class PMCurrentStreet(val streetName: String? = null, val cityName: String? = null, val countryIso: String? = null, val roadNumbers: List<String>? = null, val area: String? = null, val numberLeft: String? = null, val numberRight: String? = null, val isUrban: Boolean = false, val roadType: PMRoadType)

Represents information about current street

Link copied to clipboard
data class PMDirection(val primaryManeuver: PMManeuver? = null, val secondaryManeuver: PMManeuver? = null, val tunnelData: PMTunnelData? = null)

Represents information about direction

Link copied to clipboard

Defines type of lane divider

Link copied to clipboard
data class PMGeoCoordinates(val latitude: Double, val longitude: Double, val altitude: Double)

Represents position in WGS84 coordinates with double precision

Link copied to clipboard
data class PMLane(val type: PMLaneType, val marking: PMDividerMarking, val arrows: List<PMLaneArrow>? = null)

Represents information about lane

Link copied to clipboard
data class PMLaneArrow(val laneDirection: PMLaneDirection, val highlighted: Boolean = false)

Represents visual information about lane

Link copied to clipboard
data class PMLaneAssist(val lanes: List<PMLane>? = null, val distanceToLanesFromStart: Int = 0, val isDriveOnRight: Boolean = false)

Represent information about lanes

Link copied to clipboard

Defines lane direction

Link copied to clipboard

Defines lane type

Link copied to clipboard
data class PMManeuver(val coordinates: PMGeoCoordinates? = null, val maneuverType: PMManeuverType, val distance: Int = 0, val distanceFromStart: Int = 0, val road: PMRoad? = null, val nextRoad: PMRoad? = null, val exitNumber: String? = null, val roundaboutExit: Int = 0)

Represents information about maneuver on the route

Link copied to clipboard

Represents type of direction maneuver

Link copied to clipboard
data class PMRegional(val countrySpeedUnits: PMSpeedUnits, val countrySignage: PMCountrySignage)

Represents regional units of given country

Link copied to clipboard
data class PMRoad(val roadName: String? = null, val roadNumbers: List<String>? = null, val countryIso: String? = null)

Represents information about the road on which the maneuver takes place

Link copied to clipboard

Defines type of road

Link copied to clipboard
data class PMRoute(val distanceToDestination: Int = 0, val progress: Float = 0.0f, val waypointDurations: List<PMWaypointDurations>? = null)

Represents route progress

Link copied to clipboard
data class PMSpeedLimit(val speedLimit: Float = 0.0f, val currentSpeed: Float = 0.0f, val currentSpeedUnits: PMSpeedUnits, val inMunicipality: Boolean = false, val regional: PMRegional? = null, val nextSpeedLimit: Float = 0.0f, val nextSpeedLimitDistance: Int = 0, val conditionSpeeds: List<PMConditionSpeeds>? = null)

Represents information about current speed and road speed limits

Link copied to clipboard

Defines speed units

Link copied to clipboard
data class PMTBT(val correlationId: String? = null, val vehiclePosition: PMVehiclePosition? = null, val route: PMRoute? = null, val speedLimit: PMSpeedLimit? = null, val currentStreet: PMCurrentStreet? = null, val direction: PMDirection? = null, val laneAssist: PMLaneAssist? = null)

Represents all TBT events

Link copied to clipboard
data class PMTunnelData(val isInTunnel: Boolean = false, val remainingTunnelDistance: Int = 0)

Represents information about tunnel data

Link copied to clipboard
data class PMVehiclePosition(val coordinates: PMGeoCoordinates? = null, val speed: Float = 0.0f, val speedUnits: PMSpeedUnits, val heading: Float = 0.0f)

Represents information about current vehicle location, speed and course

Link copied to clipboard
data class PMWaypoint(val coordinates: PMGeoCoordinates? = null, val distanceFromStart: Int = 0, val status: PMWaypointStatus, val name: String? = null)

Represents waypoint information

Link copied to clipboard
data class PMWaypointDurations(val waypoint: PMWaypoint? = null, val durationWithDelaysFromStart: Int = 0, val trafficDelayFromStart: Int = 0)

Represents waypoint duration from current position

Link copied to clipboard

Defines waypoint status on route