
org.opentripplanner.street.model.vertex.SplitterVertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.street.model.vertex;
import javax.annotation.Nonnull;
import org.opentripplanner.framework.i18n.I18NString;
/**
* A vertex representing a place along a street between two intersections that is not derived from
* an OSM node, but is instead the result of breaking that street segment into two pieces in order
* to connect it to a transit stop.
*/
public class SplitterVertex extends IntersectionVertex {
private final VertexLabel label;
private final I18NString name;
public SplitterVertex(String label, double x, double y, I18NString name) {
super(x, y, false, false);
this.label = VertexLabel.string(label);
this.name = name;
}
@Override
public VertexLabel getLabel() {
return label;
}
@Override
public boolean inferredFreeFlowing() {
// splitter vertices don't represent something that exists in the world, so traversing them is
// always free.
return true;
}
@Nonnull
@Override
public I18NString getName() {
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy