public class StreetTransitLink extends Edge
Edge.ValidVertexTypes
Constructor and Description |
---|
StreetTransitLink(StreetVertex fromv,
TransitStop tov,
boolean wheelchairAccessible) |
StreetTransitLink(TransitStop fromv,
StreetVertex tov,
boolean wheelchairAccessible) |
Modifier and Type | Method and Description |
---|---|
String |
getDirection()
Get a direction on paths where it matters, or null
|
double |
getDistance() |
Vertex |
getFromVertex() |
org.locationtech.jts.geom.LineString |
getGeometry() |
TraverseMode |
getMode() |
String |
getName()
Gets english localized name
|
String |
getName(Locale locale)
Gets wanted localization
|
Vertex |
getToVertex() |
Trip |
getTrip()
This should only be called inside State; other methods should call
org.opentripplanner.routing.core.State.getBackTrip()
|
boolean |
isRoundabout()
Edges are not roundabouts by default.
|
State |
optimisticTraverse(State s0) |
String |
toString() |
State |
traverse(State s0)
Traverse this edge.
|
double |
weightLowerBound(RoutingRequest options)
Returns a lower bound on edge weight given the routing options.
|
getAzimuth, getDisplayGeometry, getId, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, timeLowerBound, vertexTypesValid
public StreetTransitLink(StreetVertex fromv, TransitStop tov, boolean wheelchairAccessible)
public StreetTransitLink(TransitStop fromv, StreetVertex tov, boolean wheelchairAccessible)
public String getDirection()
Edge
getDirection
in class Edge
public double getDistance()
getDistance
in class Edge
public org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public TraverseMode getMode()
public String getName(Locale locale)
Edge
public State optimisticTraverse(State s0)
optimisticTraverse
in class Edge
public double weightLowerBound(RoutingRequest options)
Edge
weightLowerBound
in class Edge
public Vertex getFromVertex()
getFromVertex
in class Edge
public Vertex getToVertex()
getToVertex
in class Edge
public Trip getTrip()
Edge
public boolean isRoundabout()
Edge
isRoundabout
in class Edge
Copyright © 2019. All rights reserved.