
org.opentripplanner.street.model.vertex.OsmVertexOnLevel 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 org.opentripplanner.openstreetmap.model.OSMNode;
/**
* A vertex that represents an OSM node in conjunction with its level tag like both ends of an
* elevator.
* This is a separate class in order to conserve memory as only a tiny percentage of vertices
* actually has level information.
*/
public class OsmVertexOnLevel extends OsmVertex {
private final String level;
public OsmVertexOnLevel(OSMNode node, String level) {
super(node.getCoordinate().x, node.getCoordinate().y, node.getId());
this.level = level;
}
@Override
public VertexLabel getLabel() {
return VertexLabel.osm(nodeId, level);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy