Class default<TEdgeReduce, TProperties>
Constructors
constructor
- new default<TEdgeReduce, TProperties>(network: FeatureCollection<LineString, TProperties>, options?: PathFinderOptions<TEdgeReduce, TProperties>): default<TEdgeReduce, TProperties>
-
Parameters
-
network: FeatureCollection<LineString, TProperties>
-
options: PathFinderOptions<TEdgeReduce, TProperties> = {}
Returns default<TEdgeReduce, TProperties>
Methods
_createPhantom
- _createPhantom(n: string): undefined | string
-
Returns undefined | string
_removePhantom
- _removePhantom(n: undefined | string): void
-
Returns void
findPath
- findPath(a: Feature<Point, Properties>, b: Feature<Point, Properties>): undefined | null | {
edgeDatas: undefined | (undefined | TEdgeReduce)[];
path: Position[];
weight: number;
}
-
Parameters
-
a: Feature<Point, Properties>
-
b: Feature<Point, Properties>
Returns undefined | null | {
edgeDatas: undefined | (undefined | TEdgeReduce)[];
path: Position[];
weight: number;
}