MPIJourneyManager

class MPIJourneyManager(mapView: MPIMapView)

A journey manager.

This class encapsulates the methods that manage a journey.

Parameters

mapView

Constructors

MPIJourneyManager
Link copied to clipboard
fun MPIJourneyManager(mapView: MPIMapView)
Creates an MPIJourneyManager.

Functions

clear
Link copied to clipboard
fun clear()
Remove all paths and connection tooltips on the MPIMapView
draw
Link copied to clipboard
fun draw(directions: MPIDirections, options: MPIOptions.Journey? = null)
Draws a journey on the MPIMapView
fun draw(directions: List<MPIDirections>, options: MPIOptions.Journey? = null)
Draws a journey on the MPIMapView
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
setStep
Link copied to clipboard
fun setStep(step: Int, callback: (String?, String?) -> Unit? = null)
Set the current step of a multi-part journey
toString
Link copied to clipboard
open fun toString(): String