LocationSimulator.withTrack constructor

LocationSimulator.withTrack(
  1. GPXTrack gpxTrack,
  2. LocationSimulatorOptions options
)

Create a location simulator

  • gpxTrack The GPX track to travel.

  • options The options to specify how the location simulator will behave.

Throws InstantiationException. Indicates what went wrong when the instantiation was attempted.

Implementation

factory LocationSimulator.withTrack(GPXTrack gpxTrack, LocationSimulatorOptions options) => $prototype.withTrack(gpxTrack, options);