Package org.opentripplanner.routing.edgetype

Examples of org.opentripplanner.routing.edgetype.StreetTransitLink


                request, true);
        if (nearbyStreetVertices == null) {
            result = false;
        } else {
            for (StreetVertex sv : nearbyStreetVertices) {
                new StreetTransitLink(sv, v, wheelchairAccessible);
                new StreetTransitLink(v, sv, wheelchairAccessible);
            }
            result = true;
        }
    }
View Full Code Here


        }
        if (shpName == null)
            shpName = stops.get(0).getName().split(" ")[0];  
        StreetVertex origin = new IntersectionVertex(graph, "iso_temp", originCoord.x, originCoord.y);
        for (TransitStop stop : stops) {
            new StreetTransitLink(origin, stop, false);
            LOG.debug("linked to stop {}", stop.getName());
        }
        request.setRoutingContext(graph, origin, null);
       
        /* Make one request every M minutes over H hours */
 
View Full Code Here

        intersectionA.freeFlowing = (true);
        intersectionB.freeFlowing = (true);
        intersectionC.freeFlowing = (true);
        intersectionD.freeFlowing = (true);

        new StreetTransitLink(transitStopA, intersectionA, true);
        new StreetTransitLink(intersectionB, transitStopB, true);
        new StreetTransitLink(intersectionC, transitStopC, true);
        new StreetTransitLink(intersectionD, transitStopD, true);
        new StreetTransitLink(intersectionA, transitStopE, true);

        PackedCoordinateSequence coordinatesAB = new PackedCoordinateSequence.Double(
                new double[]{1, 1, 1, 2}, 2);
        PackedCoordinateSequence coordinatesBC = new PackedCoordinateSequence.Double(
                new double[]{1, 2, 2, 2}, 2);
View Full Code Here

            }
            TransitStopStreetVertex tsv = (TransitStopStreetVertex) v;

            // Only use stop codes for linking TODO: find better method to connect stops without stop code
            if (tsv.stopCode != null && tsv.stopCode.equals(stopCode)) {
                new StreetTransitLink(ts, tsv, wheelchairAccessible);
                new StreetTransitLink(tsv, ts, wheelchairAccessible);
                LOG.debug("Connected " + ts.toString() + " to " + tsv.getLabel());
                return true;
            }
        }
        return false;
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.edgetype.StreetTransitLink

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.