public class

PackageManagerValhallaRoutingService

extends RoutingService
java.lang.Object
   ↳ com.carto.routing.RoutingService
     ↳ com.carto.routing.PackageManagerValhallaRoutingService

Class Overview

A routing service that uses routing packages from package manager.

Summary

Public Constructors
PackageManagerValhallaRoutingService(PackageManager packageManager)
Constructs a new instance of the PackageManagerValhallaRoutingService given package manager instance.
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
From class com.carto.routing.RoutingService
From class java.lang.Object

Public Constructors

public PackageManagerValhallaRoutingService (PackageManager packageManager)

Constructs a new instance of the PackageManagerValhallaRoutingService given package manager instance.

Parameters
packageManager The package manager instance to use.

Public Methods

public RoutingResult calculateRoute (RoutingRequest request)

Calculates routing result (path) based on routing request.

Parameters
request The routing request defining via points.
Returns
  • The result or null if routing failed.
Throws
IOException

public synchronized void delete ()

public Variant getConfigurationParameter (String param)

Returns the value of specified Valhalla configuration parameter.

Parameters
param The name of the parameter. For example, "meili.auto.search_radius".
Returns
  • The value of the parameter. If the parameter does not exist, empty variant is returned.

public String getProfile ()

Returns the current routing profile.

Returns
  • The current routing profile.

public RouteMatchingResult matchRoute (RouteMatchingRequest request)

Matches specified points to the points on the road network.

Parameters
request The matching request defining points.
Returns
  • The matching result or null if route matching failed.
Throws
IOException

public void setConfigurationParameter (String param, Variant value)

Sets the value of specified Valhalla configuration parameter.

Parameters
param The name of the parameter. For example, "meili.auto.search_radius".
value The new value of the parameter.

public void setProfile (String profile)

Sets the current routing profile.

Parameters
profile The new routing profile. Routing profiles are dependent on specific routing service.