OptionalsamplesSets the maximum number of location-samples to fetch before returning the best possible location to your callback. Default is 3. Only the final Location will be persisted.
OptionaldesiredSets the desired accuracy of location you're attempting to fetch. When a location having accuracy <= desiredAccuracy is retrieved, the plugin will stop sampling and immediately return that location. Defaults to your configured [[Config.stationaryRadius]].
OptionaltimeoutLocation-timeout in seconds. Default: 30. If the timeout expires before a [[Location]] is retrieved, a [[LocationError]] will fire.
OptionalpersistDefaults to true when plugin is enabled; false, otherwise. Set false to disable persisting the retrieved Location in the plugin's SQLite database.
OptionalmaximumAccept the last-recorded-location if no older than supplied value in milliseconds. Default is 0.
OptionalextrasOptional meta-data to attach to the location. These extras will be merged to the configured [[Config.extras]] and persisted / POSTed to your server (if you've configured a [[Config.url]].
Options provided to BackgroundGeolocation.getCurrentPosition.
Example