PMPpcChunk

data class PMPpcChunk(val chunkCount: UShort = UShort.MIN_VALUE, val chunkId: UShort = UShort.MIN_VALUE, val coordSize: Int = 0, val polyline: String? = null, val roadType: List<PMPpcRoadType>? = null, val roadAttr: List<UShort>? = null)

Data produced to PPC. The first point in polyline has the same coordinates as the last point in previous chunk.

Constructors

Link copied to clipboard
fun PMPpcChunk(chunkCount: UShort = UShort.MIN_VALUE, chunkId: UShort = UShort.MIN_VALUE, coordSize: Int = 0, polyline: String? = null, roadType: List<PMPpcRoadType>? = null, roadAttr: List<UShort>? = null)

Properties

Link copied to clipboard

total count of chunks for whole route

Link copied to clipboard

id-number for current chunk, counted from 0 to chunkCount - 1

Link copied to clipboard
val coordSize: Int = 0

Number of coordinates / size of arrays in current chunk

Link copied to clipboard
val polyline: String? = null

Encoded polyline string by rules defined by Google ( only for this part of chunk )

Link copied to clipboard
val roadAttr: List<UShort>? = null

encoded road attributes ( only for this part of chunk )
decoding (roadAttri& (1 << PFPpcRoadAttr.RoadAttributeRoundAbout.intValue))

Link copied to clipboard

Array for road type ( only for this part of chunk )