@cercalia/sdk
    Preparing search index...

    Interface SnapToRoadOptions

    interface SnapToRoadOptions {
        factor?: number;
        geometrySrs?: string;
        geometryTolerance?: number;
        maxDirectionSearchDistance?: number;
        maxSearchDistance?: number;
        net?: string;
        onlyTrack?: boolean;
        points?: boolean;
        speeding?: boolean;
        speedTolerance?: number;
        weight?: "time" | "distance";
    }
    Index

    Properties

    factor?: number

    Factor between route distance and straight-line distance (default: 2)

    geometrySrs?: string

    Coordinate system of the resulting polyline (default: same as srs)

    geometryTolerance?: number

    Geometry tolerance (simplification) in meters

    maxDirectionSearchDistance?: number

    Maximum allowable deviation (meters) between GPS and road point, considering direction (default: 10)

    maxSearchDistance?: number

    Maximum allowable deviation (meters) between GPS and road point, ignoring direction (default: 20)

    net?: string

    Optional: Specifies the country net used

    onlyTrack?: boolean

    If true, returns a multipoint geometry with the route points (default: false)

    points?: boolean

    If true, returns the original GPS track points displaced on the road route

    speeding?: boolean

    If true, returns separate route sections based on speed compliance

    speedTolerance?: number

    Speed tolerance in km/h (default: 0)

    weight?: "time" | "distance"

    Route type (default: 'distance')