MPIJourneyManager
public class MPIJourneyManager
A journey manager.
-
Draws a journey on the [MPIMapView]
Declaration
Swift
public func draw(directions: MPIDirections, options: MPIOptions.Journey? = nil)
Parameters
directions
The directions for the journey
options
journey options, include setting a connectionTemplateString and pathOptions
Return Value
Void
-
Draws a journey on the [MPIMapView]
Declaration
Swift
public func draw(directions: [MPIDirections], options: MPIOptions.Journey? = nil)
Parameters
directions
The list of directions for the journey
options
journey options, include setting a connectionTemplateString and pathOptions
Return Value
Void
-
Remove all paths and connection tooltips on the [MPIMapView]
Declaration
Swift
public func clear()
Return Value
Void
-
Set the current step of a multi-part journey
Declaration
Swift
public func setStep(step: Int, callback: ((String?, String?) -> Void)? = nil)
Parameters
step
The zero-indexed step of the journey to set as the current
callback
Callback for when the step has been set
Return Value
Void