Package com.targomo.client.api.request
Class MobilityRequest
java.lang.Object
com.targomo.client.api.request.MobilityRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMobilityRequest(MobilityRequestOptions requestOptions) Use default client implementation with specified options and method Default client usesClientBuilderMobilityRequest(javax.ws.rs.client.Client client, MobilityRequestOptions requestOptions) Use a custom client implementation with specified options and methodMobilityRequest(javax.ws.rs.client.Client client, MobilityRequestOptions requestOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use a custom client implementation with specified options and method -
Method Summary
-
Field Details
-
ID
- See Also:
-
LATITUDE
- See Also:
-
LONGITUDE
- See Also:
-
-
Constructor Details
-
MobilityRequest
Use a custom client implementation with specified options and method- Parameters:
client- Client implementation to be usedrequestOptions- Options to be used
-
MobilityRequest
Use default client implementation with specified options and method Default client usesClientBuilder- Parameters:
requestOptions- Options to be used
-
MobilityRequest
public MobilityRequest(javax.ws.rs.client.Client client, MobilityRequestOptions requestOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use a custom client implementation with specified options and method- Parameters:
client- Client implementation to be usedrequestOptions- Options to be usedheaders- List of custom http headers to be used
-
-
Method Details
-
get
public List<MobilityRequest.MobilityResult> get(Collection<Coordinate> locations) throws TargomoClientException, org.json.JSONException - Parameters:
locations- Coordinate collection of locations- Returns:
- list of mobility result
- Throws:
org.json.JSONException- In case the returned response is not parsableTargomoClientException- In case of other errors
-