java.lang.Object | ||
↳ | com.carto.routing.RoutingService | |
↳ | com.carto.routing.ValhallaOfflineRoutingService |
An offline routing service that uses Valhalla routing tiles.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ValhallaOfflineRoutingService(String path)
Constructs a new ValhallaOfflineRoutingService instance given database file.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RoutingResult |
calculateRoute(RoutingRequest request)
Calculates routing result (path) based on routing request.
| ||||||||||
synchronized void | delete() | ||||||||||
Variant |
getConfigurationParameter(String param)
Returns the value of specified Valhalla configuration parameter.
| ||||||||||
String |
getProfile()
Returns the current routing profile.
| ||||||||||
RouteMatchingResult |
matchRoute(RouteMatchingRequest request)
Matches specified points to the points on the road network.
| ||||||||||
void |
setConfigurationParameter(String param, Variant value)
Sets the value of specified Valhalla configuration parameter.
| ||||||||||
void |
setProfile(String profile)
Sets the current routing profile.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new ValhallaOfflineRoutingService instance given database file.
path | The full path to the database file. |
---|
Exception | If the database file could not be opened or read. |
---|---|
IOException |
Calculates routing result (path) based on routing request.
request | The routing request defining via points. |
---|
IOException |
---|
Returns the value of specified Valhalla configuration parameter.
param | The name of the parameter. For example, "meili.auto.search_radius". |
---|
Returns the current routing profile.
Matches specified points to the points on the road network.
request | The matching request defining points. |
---|
IOException |
---|
Sets the value of specified Valhalla configuration parameter.
param | The name of the parameter. For example, "meili.auto.search_radius". |
---|---|
value | The new value of the parameter. |
Sets the current routing profile.
profile | The new routing profile. Routing profiles are dependent on specific routing service. |
---|