MPRouteGeometry

Pure, engine-neutral route geometry shared by the DirectionsRenderer implementations in the Mapbox and Google adapters and by MPDirectionsRenderer. No map-engine types, so it is JVM-unit-testable; each adapter maps MPPoint results to its native point type.

Declared public (not internal): the adapters are separate Gradle modules, so Kotlin internal would not cross the module boundary. Same rationale as MPDirectionsRenderer.computeAnimationDurationMs. Not part of the documented public API.

Functions

Link copied to clipboard
Link copied to clipboard
fun computeOffset(from: MPPoint, distanceMeters: Double, headingDeg: Double): MPPoint
Link copied to clipboard
Link copied to clipboard
fun sliceByDistance(points: List<MPPoint>, startDist: Double, endDist: Double): List<MPPoint>

Properties

Link copied to clipboard
const val COMET_FRACTION: Double = 0.15
Link copied to clipboard
const val EARTH_CIRCUMFERENCE_METERS: Double = 4.007501668557849E7