Package org.opentripplanner.routing.edgetype

Examples of org.opentripplanner.routing.edgetype.SimpleTransfer


     * @param distance is distance of transfer
     */
    private void createSimpleTransfer(String from, String to, int distance) {
        TransitStop fromv = ((TransitStop) graph.getVertex(from));
        TransitStop tov = ((TransitStop) graph.getVertex(to));
        new SimpleTransfer(fromv, tov, distance, null);
    }
View Full Code Here


                        }

                        LineString geometry = geometryFactory.createLineString(new
                                PackedCoordinateSequence.Double(coordinates.toCoordinateArray()));
                        LOG.trace("  to stop: '{}' {} ({}m) [{}]", other.getStop(), other, distance, geometry);
                        new SimpleTransfer(ts, other, distance, geometry);
                        n++;
                    }
                }
            }
View Full Code Here

                Coordinate coordinates[] = new Coordinate[] {c, other.getCoordinate()};
                double distance = distanceLibrary.distance(coordinates[0], coordinates[1]);
                LineString geometry = geometryFactory.createLineString(coordinates);
                LOG.trace("  to stop: {} ({}m)", other, distance);
                new SimpleTransfer(ts, other, distance, geometry);
                n += 1;
            }
            LOG.trace("linked to {} others.", n);
        }
       
View Full Code Here

TOP

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

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.