Package org.opentripplanner.extra_graph

Examples of org.opentripplanner.extra_graph.EdgesForRoute


    private DistanceLibrary distanceLibrary = SphericalDistanceLibrary.getInstance();

    public NetworkLinkerLibrary(Graph graph, Map<Class<?>, Object> extra) {
        this.graph = graph;
        EdgesForRoute edgesForRoute = (EdgesForRoute) extra.get(EdgesForRoute.class);
        this.edgesForRoute = edgesForRoute;
        LOG.debug("constructing index...");
        this.index = new StreetVertexIndexServiceImpl(graph);
    }
View Full Code Here


    // NetworkLinkerLibrary later (actually in LinkRequests).
    // The purpose appears to be encouraging the linker to link to streets where transit actually travels.
    // So this is using the shapes from GTFS to decide which edges are used by which routes.
    public void buildGraph(Graph graph, HashMap<Class<?>, Object> extra) {
        StreetMatcher matcher = new StreetMatcher(graph);
        EdgesForRoute edgesForRoute = new EdgesForRoute();
        extra.put(EdgesForRoute.class, edgesForRoute);
        log.info("matching route variants to street edges...");
        // Why do we need to iterate over the routes? Why not just patterns?
        for (Route route : graph.index.routeForId.values()) {
            for (TripPattern pattern : graph.index.patternsForRoute.get(route)) {
View Full Code Here

TOP

Related Classes of org.opentripplanner.extra_graph.EdgesForRoute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.