Shape

data class Shape(val shapeId: String, val shapePointLatitude: Double, val shapePointLongitude: Double, val shapePointSequence: Int, val shapeDistTraveled: Double? = null)(source)

Rules for mapping vehicle travel paths, sometimes referred to as route alignments.

This class represents a record in the shapes.txt file.

Constructors

Link copied to clipboard
constructor(shapeId: String, shapePointLatitude: Double, shapePointLongitude: Double, shapePointSequence: Int, shapeDistTraveled: Double? = null)

Properties

Link copied to clipboard
@SerialName(value = "shape_dist_traveled")
val shapeDistTraveled: Double?

Actual distance traveled along the shape from the first shape point to the point specified in this record.

Link copied to clipboard
@SerialName(value = "shape_id")
val shapeId: String

Identifies a shape.

Link copied to clipboard
@SerialName(value = "shape_pt_lat")
val shapePointLatitude: Double

Latitude of a shape point.

Link copied to clipboard
@SerialName(value = "shape_pt_lon")
val shapePointLongitude: Double

Longitude of a shape point.

Link copied to clipboard
@SerialName(value = "shape_pt_sequence")
val shapePointSequence: Int

Sequence in which the shape points connect to form the shape.