Class EdgeStatisticsReachabilityRequest

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

public class EdgeStatisticsReachabilityRequest extends Object
Reachability request to edge statistics service. Returns total statistic values, like traffic, going in and out of the area (i.e. the statistics on the border edges) reachable from each location. Each location is considered individually.
  • Constructor Details

    • EdgeStatisticsReachabilityRequest

      public EdgeStatisticsReachabilityRequest(javax.ws.rs.client.Client client, int edgeStatisticCollectionId, EdgeStatisticsReachabilityRequestOptions requestOptions, javax.ws.rs.core.MultivaluedMap<String,Object> headers)
      Use a custom client implementation with specified options, method, and headers
      Parameters:
      client - Client implementation to be used
      edgeStatisticCollectionId - Id of the statistic collection
      requestOptions - The options for the request
      headers - List of custom http headers to be used
    • EdgeStatisticsReachabilityRequest

      public EdgeStatisticsReachabilityRequest(javax.ws.rs.client.Client client, int edgeStatisticCollectionId, Set<Integer> edgeStatisticIds, List<Integer> ignoreRoadClasses, boolean calculateReachabilityInFlyMode, TravelOptions travelOptions, javax.ws.rs.core.MultivaluedMap<String,Object> headers)
    • EdgeStatisticsReachabilityRequest

      public EdgeStatisticsReachabilityRequest(javax.ws.rs.client.Client client, int edgeStatisticCollectionId, Set<Integer> edgeStatisticIds, List<Integer> ignoreRoadClasses, boolean calculateReachabilityInFlyMode, TravelOptions travelOptions)
      Use a custom client implementation with specified options and default headers
      See Also:
    • EdgeStatisticsReachabilityRequest

      public EdgeStatisticsReachabilityRequest(int edgeStatisticCollectionId, Set<Integer> edgeStatisticIds, List<Integer> ignoreRoadClasses, boolean calculateReachabilityInFlyMode, TravelOptions travelOptions)
      Use default client implementation with specified options and default headers Default client uses ClientBuilder
      See Also:
  • Method Details

    • get

      public EdgeStatisticsReachabilityResponse get() throws TargomoClientException, com.fasterxml.jackson.core.JsonProcessingException
      Returns:
      A response object containing a map of location id to a map of edge statistic id to statistic value
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - In case the returned response is not parsable
      TargomoClientException - In case of other errors