public class Router extends Object
Constructor and Description |
---|
Router(GraphHopperStorage ghStorage,
LocationIndex locationIndex,
Map<String,Profile> profilesByName,
PathDetailsBuilderFactory pathDetailsBuilderFactory,
TranslationMap translationMap,
RouterConfig routerConfig,
WeightingFactory weightingFactory,
Map<String,CHGraph> chGraphs,
Map<String,LandmarkStorage> landmarks) |
Modifier and Type | Method and Description |
---|---|
GHResponse |
route(GHRequest request) |
protected GHResponse |
routeAlt(GHRequest request,
AlgorithmOptions algoOpts,
Weighting weighting,
Profile profile,
boolean passThrough,
boolean forceCurbsides,
boolean disableCH,
boolean disableLM) |
protected GHResponse |
routeRoundTrip(GHRequest request,
AlgorithmOptions algoOpts,
Weighting weighting,
Profile profile,
boolean disableLM) |
protected GHResponse |
routeVia(GHRequest request,
AlgorithmOptions algoOpts,
Weighting weighting,
Profile profile,
boolean passThrough,
boolean forceCurbsides,
boolean disableCH,
boolean disableLM) |
protected void |
validateRequest(GHRequest request) |
public Router(GraphHopperStorage ghStorage, LocationIndex locationIndex, Map<String,Profile> profilesByName, PathDetailsBuilderFactory pathDetailsBuilderFactory, TranslationMap translationMap, RouterConfig routerConfig, WeightingFactory weightingFactory, Map<String,CHGraph> chGraphs, Map<String,LandmarkStorage> landmarks)
public GHResponse route(GHRequest request)
protected GHResponse routeRoundTrip(GHRequest request, AlgorithmOptions algoOpts, Weighting weighting, Profile profile, boolean disableLM)
protected GHResponse routeAlt(GHRequest request, AlgorithmOptions algoOpts, Weighting weighting, Profile profile, boolean passThrough, boolean forceCurbsides, boolean disableCH, boolean disableLM)
protected GHResponse routeVia(GHRequest request, AlgorithmOptions algoOpts, Weighting weighting, Profile profile, boolean passThrough, boolean forceCurbsides, boolean disableCH, boolean disableLM)
protected void validateRequest(GHRequest request)
Copyright © 2012–2021. All rights reserved.