Skip to main content

VPSLocationSourceConfig

wemap-sdk-js


Interface: VPSLocationSourceConfig

Configuration options for VPSLocationSource

Extends

  • LocationSourceOptions

Properties

maxAngleBearing?

optional maxAngleBearing: number

Maximum angle difference in radians between bearing and route direction

Inherited from

LocationSourceOptions.maxAngleBearing


maxDistance?

optional maxDistance: number

Maximum distance in meters from route to consider a match

Inherited from

LocationSourceOptions.maxDistance


minDistance?

optional minDistance: number

Minimum distance in meters from route to consider a match

Inherited from

LocationSourceOptions.minDistance


useOrientationMatching?

optional useOrientationMatching: boolean

Whether to use orientation matching (defaults to true)

Inherited from

LocationSourceOptions.useOrientationMatching


usePositionSmoother?

optional usePositionSmoother: boolean

Whether to use position smoothing (defaults to true)

Inherited from

LocationSourceOptions.usePositionSmoother


useStrict?

optional useStrict: boolean

Whether to use strict map matching (defaults to false)

Inherited from

LocationSourceOptions.useStrict


vps?

optional vps: object

VPS-specific configuration options

backgroundScan?

optional backgroundScan: boolean

If true, automatically start a new scan 30s after the last scan if no scan was triggered in between

backgroundScanIntervalMs?

optional backgroundScanIntervalMs: number

Interval in ms before triggering a background scan when no scan was triggered (default: 30000)

degradedLocationStateThreshold?

optional degradedLocationStateThreshold: number

Threshold for degraded location state (default: 50m)

noPositioningLocationStateThreshold?

optional noPositioningLocationStateThreshold: number

Threshold for no positioning location state (default: 100m)