Package com.massifmaps.routing
Class PackageManagerRoutingService
java.lang.Object
com.massifmaps.routing.RoutingService
com.massifmaps.routing.PackageManagerRoutingService
A routing service that uses routing packages from package manager.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageManagerRoutingService(PackageManager packageManager) Constructs a new instance of the PackageManagerRoutingService given package manager instance. -
Method Summary
Modifier and TypeMethodDescriptioncalculateRoute(RoutingRequest request) Calculates routing result (path) based on routing request.Returns the current routing profile.matchRoute(RouteMatchingRequest request) Matches specified points to the points on the road network.voidsetProfile(String profile) Sets the current routing profile.
-
Constructor Details
-
PackageManagerRoutingService
Constructs a new instance of the PackageManagerRoutingService given package manager instance.- Parameters:
packageManager- The package manager instance to use.
-
-
Method Details
-
getProfile
Description copied from class:RoutingServiceReturns the current routing profile.- Overrides:
getProfilein classRoutingService- Returns:
- The current routing profile.
-
setProfile
Description copied from class:RoutingServiceSets the current routing profile.- Overrides:
setProfilein classRoutingService- Parameters:
profile- The new routing profile. Routing profiles are dependent on specific routing service.
-
matchRoute
Description copied from class:RoutingServiceMatches specified points to the points on the road network.- Overrides:
matchRoutein classRoutingService- Parameters:
request- The matching request defining points.- Returns:
- The matching result or null if route matching failed.
- Throws:
IOException
-
calculateRoute
Description copied from class:RoutingServiceCalculates routing result (path) based on routing request.- Overrides:
calculateRoutein classRoutingService- Parameters:
request- The routing request defining via points.- Returns:
- The result or null if routing failed.
- Throws:
IOException
-