Class 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 Detail

      • ExternalRouteProvider

        public ExternalRouteProvider()
    • Method Detail

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