Way-Fi 1.6.0
This class provides high-level routing capabilities on a graph.
It serves as the main interface to interact with the underlying native WayFi routing engine. This class allows clients to load layers, set routing constraints (such as masks), define source and destination points, and compute optimal routes.
Key features include:
Loading layers from GeoJSON files (with optional coordinate reference system specification).
Linking layers into a navigable graph.
Adding a source and multiple destinations for route computation.
Calculating the shortest route(s) between source and destination(s).
Modifying arc costs and applying masks to dynamically influence routing behavior.
Accessing and inspecting loaded layers.
Types
Properties
Functions
Adds a destination in the specified layer at the specified position. Multiple destinations can be added for a search.
Adds all POIs of the specified category in every layer.
Adds all POIs of the specified category to the specified layer as destinations.
Change the cost of an arc between two nodes that has the specified mask. This method is useful in case the graph allows for duplicated arcs with different mask.
Change the cost of an arc between two nodes identified by UNL.
Finds the best route between the source and the nearest destination.
Finds the best routes between the source and all the destinations.
Links all the layers loaded so far. This operation will finalized the graph, which means that you will not be able to add any more layers after this operation. If not called before, this method will be called automatically when the source is added.
Sets how to handle duplicated arcs.
Sets the margin to "snap" source and destination points to the nearest edge if they fall within a wall.