java.lang.Object | ||
↳ | com.carto.routing.RoutingService | |
↳ | com.carto.routing.CartoOnlineRoutingService |
This class is deprecated.
No replacement.
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.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new CartoOnlineRoutingService instance given service source.
source | The source id of the service. |
---|
Calculates routing result (path) based on routing request.
request | The routing request defining via points. |
---|
IOException |
---|
Returns the current routing profile.
Matches specified points to the points on the road network.
request | The matching request defining points. |
---|
IOException |
---|
Sets the current routing profile.
profile | The new routing profile. Routing profiles are dependent on specific routing service. |
---|