org.opentripplanner.transit.raptor.service.RequestAlias Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.transit.raptor.service;
import org.opentripplanner.transit.raptor.api.request.RaptorRequest;
public class RequestAlias {
public static String alias(RaptorRequest> request, boolean serviceMultithreaded) {
boolean multithreaded = serviceMultithreaded && request.runInParallel();
String alias = request.profile().abbreviation();
if (request.searchDirection().isInReverse()) {
alias += "-Rev";
}
if (multithreaded) {
// Run search in parallel
alias += "-LL";
}
if (request.useDestinationPruning()) {
// Heuristic to prune on pareto optimal Destination arrivals
alias += "-DP";
}
return alias;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy