Routify Documentation
Loading...
Searching...
No Matches
ch.routify.routing.CustomRoute Class Reference

Public Member Functions

 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< CustomEdgegetEdges ()
 
CustomVertex getOriginalStartVertex ()
 
CustomVertex getOriginalEndVertex ()
 

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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: