Home > @magiclane/maps-sdk > PathMatch

PathMatch class

Represents a path match result from hit testing.

Core

Signature:

export declare class PathMatch 

Constructors

Constructor

Modifiers

Description

(constructor)(params)

Constructs a new instance of the PathMatch class

Properties

Property

Modifiers

Type

Description

coords

Coordinates

Path matched position coordinates.

distance

number

Distance to matched position in meters.

path

number

Matched path index in the path collection.

segment

number

Path matched segment.

Methods

Method

Modifiers

Description

fromJson(json)

static

toJson()