toLineString

fun RouteAlertGeometry.toLineString(directionsRoute: DirectionsRoute, precision: Int): LineString

Returns a LineString geometry of the alert.

Parameters

directionsRoute

the original route that this alert is a part of.

precision

precision of the polyline encoding. Possible values are Constants.PRECISION_5 and Constants.PRECISION_6. See RouteOptions.Builder.geometries.

fun RouteAlertGeometry.toLineString(routeLineString: LineString): LineString

Returns a LineString geometry of the alert.

Parameters

routeLineString

line-string of the original route that this alert is a part of.