DecodeUtils

object DecodeUtils

Provides utilities to decode geometries of DirectionsRoutes and LegSteps. Results are cached for geometries of up to 3 DirectionsRoutes.

Functions

completeGeometryToLineString
Link copied to clipboard
fun DirectionsRoute.completeGeometryToLineString(): LineString
Decodes geometry of a DirectionsRoute to a LineString and caches the result.
completeGeometryToPoints
Link copied to clipboard
fun DirectionsRoute.completeGeometryToPoints(): List<Point>
Decodes geometry of a DirectionsRoute to a List of Points and caches the result.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
stepGeometryToLineString
Link copied to clipboard
fun DirectionsRoute.stepGeometryToLineString(legStep: LegStep): LineString
Decodes geometry of a LegStep in a DirectionsRoute to a LineString and caches the result.
stepGeometryToPoints
Link copied to clipboard
fun DirectionsRoute.stepGeometryToPoints(legStep: LegStep): List<Point>
Decodes geometry of a LegStep in a DirectionsRoute to a List of Points and caches the result.
stepsGeometryToLineString
Link copied to clipboard
fun DirectionsRoute.stepsGeometryToLineString(): List<List<LineString>>
Decodes geometries of all LegSteps in a DirectionsRoute to LineStrings and caches the results.
stepsGeometryToPoints
Link copied to clipboard
fun DirectionsRoute.stepsGeometryToPoints(): List<List<List<Point>>>
Decodes geometries of all LegSteps in a DirectionsRoute to Lists of Points and caches the results.
toString
Link copied to clipboard
open fun toString(): String