public class

CartoOnlineRoutingService

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

This class is deprecated.
No replacement.

Class Overview

An online routing service that connects to Carto-provided routing server.
Routing and route matching perform network requests and must be executed in non-UI background thread.
Note: this service is not actively maintained and will be removed in future versions.

Summary

Public Constructors
CartoOnlineRoutingService(String source)
Constructs a new CartoOnlineRoutingService instance given service source.
Public Methods
RoutingResult calculateRoute(RoutingRequest request)
Calculates routing result (path) based on routing request.
synchronized void delete()
String getProfile()
Returns the current routing profile.
RouteMatchingResult matchRoute(RouteMatchingRequest request)
Matches specified points to the points on the road network.
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 CartoOnlineRoutingService (String source)

Constructs a new CartoOnlineRoutingService instance given service source.

Parameters
source The source id of the service.

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 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 setProfile (String profile)

Sets the current routing profile.

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