Package com.navmii.sdk.routecalculation
Class ExternalRouteProvider
java.lang.Object
com.navmii.sdk.routecalculation.ExternalRouteProvider
public abstract class ExternalRouteProvider
extends java.lang.Object
An interface giving ability to provide the SDK with custom routes.
Methods of this interface are called not in the main (UI) thread.
-
Constructor Summary
Constructors Constructor Description ExternalRouteProvider()
-
Method Summary
Modifier and Type Method Description abstract ExternalRouteHttpRequest
composeRouteHttpRequest(java.util.ArrayList<RoutePlanPoint> routePlan, ExternalRouteParameters routeParameters)
The method is used to compose an external route request based on the specified route plan and route parameters.abstract java.util.ArrayList<ExternalRoute>
parseRouteHttpsResponse(java.lang.String response)
The method is used to convert the specified HTTP response to an array of ExternalRoute objects.
-
Constructor Details
-
ExternalRouteProvider
public ExternalRouteProvider()
-
-
Method Details
-
composeRouteHttpRequest
public abstract ExternalRouteHttpRequest composeRouteHttpRequest(java.util.ArrayList<RoutePlanPoint> routePlan, ExternalRouteParameters routeParameters)The method is used to compose an external route request based on the specified route plan and route parameters.- Parameters:
routePlan
- The route plan of a new route;routeParameters
- The parameters of a new route.- Returns:
- An ExternalRouteHttpRequest instance or 'null'.
-
parseRouteHttpsResponse
public abstract java.util.ArrayList<ExternalRoute> parseRouteHttpsResponse(java.lang.String response)The method is used to convert the specified HTTP response to an array of ExternalRoute objects.- Parameters:
response
- Response for a route HTTP request.- Returns:
- An array of routes.
-