public abstract class GraphPathToTripPlanConverter extends Object
Constructor and Description |
---|
GraphPathToTripPlanConverter() |
Modifier and Type | Method and Description |
---|---|
static Itinerary |
generateItinerary(GraphPath path,
boolean showIntermediateStops,
boolean disableAlertFiltering,
Locale requestedLocale)
Generate an itinerary from a
GraphPath . |
static TripPlan |
generatePlan(List<GraphPath> paths,
RoutingRequest request)
Generates a TripPlan from a set of paths
|
static List<WalkStep> |
generateWalkSteps(Graph graph,
State[] states,
WalkStep previous,
Locale requestedLocale)
Converts a list of street edges to a list of turn-by-turn directions.
|
static String |
getBoardAlightMessage(int boardAlightType)
This was originally in TransitUtils.handleBoardAlightType.
|
static CoordinateArrayListSequence |
makeCoordinates(Edge[] edges)
Generate a
CoordinateArrayListSequence based on an Edge array. |
public static TripPlan generatePlan(List<GraphPath> paths, RoutingRequest request)
public static Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops, boolean disableAlertFiltering, Locale requestedLocale)
GraphPath
. This method first slices the list of states
at the leg boundaries. These smaller state arrays are then used to generate legs. Finally the
rest of the itinerary is generated based on the complete state array.path
- The graph path to base the itinerary onshowIntermediateStops
- Whether to include intermediate stops in the itinerary or notpublic static CoordinateArrayListSequence makeCoordinates(Edge[] edges)
CoordinateArrayListSequence
based on an Edge
array.edges
- The array of input edgespublic static String getBoardAlightMessage(int boardAlightType)
public static List<WalkStep> generateWalkSteps(Graph graph, State[] states, WalkStep previous, Locale requestedLocale)
previous
- a non-transit leg that immediately precedes this one (bike-walking, say), or nullCopyright © 2019. All rights reserved.