Class TimeRequest

java.lang.Object
com.targomo.client.api.request.TimeRequest

public class TimeRequest extends Object
Calculates travel times from each source point to each target. Only accepts HttpMethod POST.
  • Constructor Details

    • TimeRequest

      public TimeRequest(TravelOptions travelOptions)
      Use default client implementation with specified options and method Default client uses ClientBuilder.
      Parameters:
      travelOptions - Options to be used
    • TimeRequest

      public TimeRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions)
      Use a custom client implementation with specified options and method
      Parameters:
      client - Client implementation to be used
      travelOptions - Options to be used
    • TimeRequest

      public TimeRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String,Object> headers)
      Use a custom client implementation with specified options and method
      Parameters:
      client - Client implementation to be used
      travelOptions - Options to be used
      headers - if required, headers can be attached to this request
  • Method Details