|
Routify Documentation
|
Public Member Functions | |
| CallableRouting (CustomAsSubgraph< CustomVertex, CustomEdge > _graph, JSONObject _data, Tuple2< CustomVertex, CustomVertex > _endpoints, HashMap< CustomEdge, Double > _weights, String _routing_mode, String _transport_mode, boolean _directions, boolean _traveltime, RoutingModeService routingModeService, String[] allowedFeatures) | |
| CustomRoute | call () throws Exception |
The CallableRouting class implements the Callable interface, providing a way to compute routing asynchronously. It encapsulates the routing calculation logic, allowing it to be executed in parallel or on a separate thread, returning a JSONObject that contains the routing result.
|
inline |
Constructs a new instance of CallableRouting with the specified parameters.
| _graph | The graph on which to perform the routing. |
| _data | Additional data required for the routing calculation. |
| _endpoints | The starting and ending vertices for the routing. |
| _weights | The weights associated with the edges in the graph. |
| _routing_mode | The routing mode to be used. |
| _transport_mode | The transport mode to be used for routing. |
| _directions | Whether to include directions in the response. |
| _traveltime | Whether to include travel time in the response. |
|
inline |
Executes the routing calculation.
JSONObject containing the results of the routing calculation. | Exception | if an error occurs during the routing calculation. |