All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.routing.vertextype.OsmVertex Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.routing.vertextype;

import org.opentripplanner.routing.graph.Graph;
import org.opentripplanner.util.I18NString;

/**
 * A vertex coming from OpenStreetMap.
 * 
 * This class marks something that comes from the street network itself. It is used for
 * linking origins in Analyst to ensure that they are linked to the same locations
 * regardless of changes in the transit network between (or eventually within) graphs.
 */
public class OsmVertex extends IntersectionVertex {
    private static final long serialVersionUID = 1L;

    /** The OSM node ID from whence this came */
    public final long nodeId;

    public OsmVertex(Graph g, String label, double x, double y, long nodeId) {
        super(g, label, x, y);
        this.nodeId = nodeId;
    }

    public OsmVertex(Graph g, String label, double x, double y, long nodeId, I18NString name) {
        super(g, label, x, y, name);
        this.nodeId = nodeId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy