Object GraphHopperOptions.Companion
-
- All Implemented Interfaces:
public class GraphHopperOptions.Companion
Utilities for GraphHopper routing.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<String>
graphHopperAlgorithms
private final List<Profile>
allProfiles
private final List<CustomModel>
allCustomModels
private final GraphHopperOptions
defaultOptions
public final static GraphHopperOptions.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final GraphHopperOptions
optionsFor(String vehicle, String weighting, String algorithm)
Retrieves or creates the set of options for the required vehicle (default: foot), weighting (default: fastest), and algorithm (default: dijstrabi). final GraphHopperOptions
optionsFor(String profile, String algorithm)
Retrieves or creates the set of options for the required profile (default: foot_fastest) and algorithm (default: dijstrabi). final GraphHopperOptions
optionsFor(String profile)
Retrieves or creates the set of options for the required profile (default: foot_fastest) and algorithm (default: dijstrabi). final GraphHopperOptions
optionsFor()
Retrieves or creates the set of options for the required profile (default: foot_fastest) and algorithm (default: dijstrabi). final List<String>
getGraphHopperAlgorithms()
All the non-abstract subclasses of RoutingAlgorithm available in the runtime. final List<Profile>
getAllProfiles()
All the available Profiles in the runtime. final List<CustomModel>
getAllCustomModels()
All the available Profiles in the runtime. final GraphHopperOptions
getDefaultOptions()
Default GraphHopperOptions: foot as vehicle, fastest as weighting, and dijkstrabi as algorithm. -
-
Method Detail
-
optionsFor
final GraphHopperOptions optionsFor(String vehicle, String weighting, String algorithm)
Retrieves or creates the set of options for the required vehicle (default: foot), weighting (default: fastest), and algorithm (default: dijstrabi).
-
optionsFor
@JvmOverloads() final GraphHopperOptions optionsFor(String profile, String algorithm)
Retrieves or creates the set of options for the required profile (default: foot_fastest) and algorithm (default: dijstrabi).
-
optionsFor
@JvmOverloads() final GraphHopperOptions optionsFor(String profile)
Retrieves or creates the set of options for the required profile (default: foot_fastest) and algorithm (default: dijstrabi).
-
optionsFor
@JvmOverloads() final GraphHopperOptions optionsFor()
Retrieves or creates the set of options for the required profile (default: foot_fastest) and algorithm (default: dijstrabi).
-
getGraphHopperAlgorithms
final List<String> getGraphHopperAlgorithms()
All the non-abstract subclasses of RoutingAlgorithm available in the runtime.
-
getAllProfiles
final List<Profile> getAllProfiles()
All the available Profiles in the runtime.
-
getAllCustomModels
final List<CustomModel> getAllCustomModels()
All the available Profiles in the runtime.
-
getDefaultOptions
final GraphHopperOptions getDefaultOptions()
Default GraphHopperOptions: foot as vehicle, fastest as weighting, and dijkstrabi as algorithm.
-
-
-
-