|
| | CustomRoute (RoutingModeService routingModeService, String[] allowedFeatures, JSONObject data, Tuple2< CustomVertex, CustomVertex > endpoints, CustomAsSubgraph< CustomVertex, CustomEdge > graph, HashMap< CustomEdge, Double > weights, String routingMode, String transportMode, boolean includeDirections, boolean includeTraveltime) throws Exception |
| |
| JSONObject | toJSON () |
| |
| String | toString () |
| |
| List< CustomEdge > | getEdges () |
| |
| CustomVertex | getOriginalStartVertex () |
| |
| CustomVertex | getOriginalEndVertex () |
| |
◆ CustomRoute()
| ch.routify.routing.CustomRoute.CustomRoute |
( |
RoutingModeService | routingModeService, |
|
|
String[] | allowedFeatures, |
|
|
JSONObject | data, |
|
|
Tuple2< CustomVertex, CustomVertex > | endpoints, |
|
|
CustomAsSubgraph< CustomVertex, CustomEdge > | graph, |
|
|
HashMap< CustomEdge, Double > | weights, |
|
|
String | routingMode, |
|
|
String | transportMode, |
|
|
boolean | includeDirections, |
|
|
boolean | includeTraveltime ) throws Exception |
|
inline |
◆ getEdges()
| List< CustomEdge > ch.routify.routing.CustomRoute.getEdges |
( |
| ) |
|
|
inline |
◆ getOriginalEndVertex()
| CustomVertex ch.routify.routing.CustomRoute.getOriginalEndVertex |
( |
| ) |
|
|
inline |
◆ getOriginalStartVertex()
| CustomVertex ch.routify.routing.CustomRoute.getOriginalStartVertex |
( |
| ) |
|
|
inline |
◆ toJSON()
| JSONObject ch.routify.routing.CustomRoute.toJSON |
( |
| ) |
|
|
inline |
Returns a JSON representation of the route with conditional travel time information. This method ensures that travel time information is only included when requested.
- Returns
- JSONObject representing the route with conditional travel time.
◆ toString()
| String ch.routify.routing.CustomRoute.toString |
( |
| ) |
|
|
inline |
Override toString to use custom JSON serialization. This ensures that our conditional travel time logic is used.
The documentation for this class was generated from the following file: