
org.opentripplanner.street.model.vertex.OsmVertex Maven / Gradle / Ivy
The newest version!
package org.opentripplanner.street.model.vertex;
import org.opentripplanner.framework.i18n.I18NString;
/**
* A vertex coming from OpenStreetMap.
*
* This class marks something that comes from the street network itself.
*/
public class OsmVertex extends IntersectionVertex {
/** The OSM node ID from whence this came */
public final long nodeId;
public OsmVertex(double x, double y, long nodeId) {
super(x, y);
this.nodeId = nodeId;
}
public OsmVertex(
double x,
double y,
long nodeId,
boolean hasHighwayTrafficLight,
boolean hasCrossingTrafficLight
) {
super(x, y, hasHighwayTrafficLight, hasCrossingTrafficLight);
this.nodeId = nodeId;
}
@Override
public I18NString getName() {
return NO_NAME;
}
@Override
public VertexLabel getLabel() {
return new VertexLabel.OsmNodeLabel(nodeId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy