Package org.opentripplanner.api.resource

Examples of org.opentripplanner.api.resource.PlanGenerator


            this.pathService = pathService;
            // cpf.bind(RemainingWeightHeuristicFactory.class,
            //        new DefaultRemainingWeightHeuristicFactoryImpl());
        }

        planGenerator = new PlanGenerator(graphService, pathService);
        tileRendererManager = new TileRendererManager(graphService);

        // Optional Analyst Modules.
        if (params.analyst) {
            tileCache = new TileCache(graphService);
View Full Code Here


                }
            }
        }
        Geometry geom = GeometryUtils.getGeometryFactory().createLineString(coordinates);
        this.geometry = PolylineEncoder.createEncodings(geom);
        PlanGenerator pgen = new PlanGenerator(null, null);
        Itinerary itin = pgen.generateItinerary(path, false);
        for (Leg leg : itin.legs) {
            walkSteps.addAll(leg.walkSteps);
        }
        time = (int) (state.getElapsedTimeSeconds());
    }
View Full Code Here

        if (isLongDistance()) {
            pathService = new LongDistancePathService(null, genericAStar);
        } else {
            pathService = new RetryingPathServiceImpl(null, genericAStar);
        }
        planGenerator = new PlanGenerator(null, pathService);
    }
View Full Code Here

TOP

Related Classes of org.opentripplanner.api.resource.PlanGenerator

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.