routingRequest = new RoutingRequest();
sptServiceFactory = new GenericAStarFactory();
// Choose a PathService to wrap the SPTService, depending on expected maximum path lengths
if (params.longDistance) {
LongDistancePathService pathService = new LongDistancePathService(graphService, sptServiceFactory);
pathService.timeout = 10;
this.pathService = pathService;
} else {
RetryingPathServiceImpl pathService = new RetryingPathServiceImpl(graphService, sptServiceFactory);
pathService.setFirstPathTimeout(10.0);
pathService.setMultiPathTimeout(1.0);
this.pathService = pathService;
// cpf.bind(RemainingWeightHeuristicFactory.class,
// new DefaultRemainingWeightHeuristicFactoryImpl());
}