Class SyntheticApi


  • public class SyntheticApi
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SyntheticApi()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Result<Output> generateSyntheticData​(android.content.Context context, Coordinates origin, Coordinates destination, Request requestType, java.lang.String apiKey)
      Generate synthetic data between the origin and destination, starting at the current time of the request
      static void generateSyntheticData​(android.content.Context context, Coordinates origin, Coordinates destination, Request requestType, java.lang.String apiKey, Listener listener)
      Generate asynchronously synthetic data between the origin and destination, starting at the current time of the request
      static Result<Output> generateSyntheticDataWithStart​(android.content.Context context, Coordinates origin, Coordinates destination, Request requestType, java.lang.String apiKey, long startTimestamp)
      Generate synthetic data between the origin and destination, starting at the the time specified in the request
      static void generateSyntheticDataWithStart​(android.content.Context context, Coordinates origin, Coordinates destination, Request requestType, java.lang.String apiKey, long startTimestamp, Listener listener)
      Generate asynchronously synthetic data between the origin and destination, starting at the the time specified in the request
      static Result<Output> generateSyntheticDataWithStop​(android.content.Context context, Coordinates origin, Coordinates destination, Request requestType, java.lang.String apiKey, long stopTimestamp)
      Generate synthetic data between the origin and destination, ending at the the time specified in the request
      static void generateSyntheticDataWithStop​(android.content.Context context, Coordinates origin, Coordinates destination, Request requestType, java.lang.String apiKey, long stopTimestamp, Listener listener)
      Generate asynchronously synthetic data between the origin and destination, ending at the the time specified in the request
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyntheticApi

        public SyntheticApi()
    • Method Detail

      • generateSyntheticData

        @WorkerThread
        public static Result<Output> generateSyntheticData​(@NonNull
                                                           android.content.Context context,
                                                           @NonNull
                                                           Coordinates origin,
                                                           @NonNull
                                                           Coordinates destination,
                                                           @NonNull
                                                           Request requestType,
                                                           @NonNull
                                                           java.lang.String apiKey)
        Generate synthetic data between the origin and destination, starting at the current time of the request
        Parameters:
        context - the context
        origin - the origin of the synthetic trip
        destination - the destination of the synthetic trip
        requestType - the type of journey
        apiKey - the external API key for the third-party journey planner
        Returns:
        the output of the synthetic data generation
      • generateSyntheticData

        @AnyThread
        public static void generateSyntheticData​(@NonNull
                                                 android.content.Context context,
                                                 @NonNull
                                                 Coordinates origin,
                                                 @NonNull
                                                 Coordinates destination,
                                                 @NonNull
                                                 Request requestType,
                                                 @NonNull
                                                 java.lang.String apiKey,
                                                 Listener listener)
        Generate asynchronously synthetic data between the origin and destination, starting at the current time of the request
        Parameters:
        context - the context
        origin - the origin of the synthetic trip
        destination - the destination of the synthetic trip
        requestType - the type of journey
        apiKey - the external API key for the third-party journey planner
        listener - is triggered when the operation succeed or fails
      • generateSyntheticDataWithStart

        @WorkerThread
        public static Result<Output> generateSyntheticDataWithStart​(@NonNull
                                                                    android.content.Context context,
                                                                    @NonNull
                                                                    Coordinates origin,
                                                                    @NonNull
                                                                    Coordinates destination,
                                                                    @NonNull
                                                                    Request requestType,
                                                                    @NonNull
                                                                    java.lang.String apiKey,
                                                                    long startTimestamp)
        Generate synthetic data between the origin and destination, starting at the the time specified in the request
        Parameters:
        context - the context
        origin - the origin of the synthetic trip
        destination - the destination of the synthetic trip
        requestType - the type of journey
        apiKey - the external API key for the third-party journey planner
        startTimestamp - the start timestamp (Epoch time in milliseconds)
        Returns:
        the output of the synthetic data generation
      • generateSyntheticDataWithStart

        @AnyThread
        public static void generateSyntheticDataWithStart​(@NonNull
                                                          android.content.Context context,
                                                          @NonNull
                                                          Coordinates origin,
                                                          @NonNull
                                                          Coordinates destination,
                                                          @NonNull
                                                          Request requestType,
                                                          @NonNull
                                                          java.lang.String apiKey,
                                                          long startTimestamp,
                                                          Listener listener)
        Generate asynchronously synthetic data between the origin and destination, starting at the the time specified in the request
        Parameters:
        context - the context
        origin - the origin of the synthetic trip
        destination - the destination of the synthetic trip
        requestType - the type of journey
        apiKey - the external API key for the third-party journey planner
        startTimestamp - the start timestamp (Epoch time in milliseconds)
        listener - is triggered when the operation succeed or fails
      • generateSyntheticDataWithStop

        @WorkerThread
        public static Result<Output> generateSyntheticDataWithStop​(@NonNull
                                                                   android.content.Context context,
                                                                   @NonNull
                                                                   Coordinates origin,
                                                                   @NonNull
                                                                   Coordinates destination,
                                                                   @NonNull
                                                                   Request requestType,
                                                                   @NonNull
                                                                   java.lang.String apiKey,
                                                                   long stopTimestamp)
        Generate synthetic data between the origin and destination, ending at the the time specified in the request
        Parameters:
        context - the context
        origin - the origin of the synthetic trip
        destination - the destination of the synthetic trip
        requestType - the type of journey
        apiKey - the external API key for the third-party journey planner
        stopTimestamp - the stop timestamp (Epoch time in milliseconds)
        Returns:
        the output of the synthetic data generation
      • generateSyntheticDataWithStop

        @AnyThread
        public static void generateSyntheticDataWithStop​(@NonNull
                                                         android.content.Context context,
                                                         @NonNull
                                                         Coordinates origin,
                                                         @NonNull
                                                         Coordinates destination,
                                                         @NonNull
                                                         Request requestType,
                                                         @NonNull
                                                         java.lang.String apiKey,
                                                         long stopTimestamp,
                                                         Listener listener)
        Generate asynchronously synthetic data between the origin and destination, ending at the the time specified in the request
        Parameters:
        context - the context
        origin - the origin of the synthetic trip
        destination - the destination of the synthetic trip
        requestType - the type of journey
        apiKey - the external API key for the third-party journey planner
        stopTimestamp - the stop timestamp (Epoch time in milliseconds)
        listener - is triggered when the operation succeed or fails