mapRouteLegAnnotation

fun mapRouteLegAnnotation(routeLeg: RouteLeg): List<ReplayEventBase>

Given a RouteLeg, use the LegAnnotation to create the speed and locations. To use this, your Directions request must include DirectionsCriteria.ANNOTATION_SPEED and DirectionsCriteria.ANNOTATION_DISTANCE

Return

ReplayEventBase

Parameters

routeLeg

the RouteLeg to be mapped into replay events