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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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.