Package com.targomo.client.api.request
Class EdgeStatisticsReachabilityRequest
java.lang.Object
com.targomo.client.api.request.EdgeStatisticsReachabilityRequest
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 Summary
ConstructorsConstructorDescriptionEdgeStatisticsReachabilityRequest(int edgeStatisticCollectionId, Set<Integer> edgeStatisticIds, List<Integer> ignoreRoadClasses, boolean calculateReachabilityInFlyMode, TravelOptions travelOptions) Use default client implementation with specified options and default headers Default client usesClientBuilderEdgeStatisticsReachabilityRequest(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 headersEdgeStatisticsReachabilityRequest(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 headersEdgeStatisticsReachabilityRequest(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) -
Method Summary
-
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 usededgeStatisticCollectionId- Id of the statistic collectionrequestOptions- The options for the requestheaders- List of custom http headers to be used
-
EdgeStatisticsReachabilityRequest
-
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 -
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 usesClientBuilder
-
-
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 parsableTargomoClientException- In case of other errors
-