Package com.targomo.client.api.request
Class PointOfInterestRequest
java.lang.Object
com.targomo.client.api.request.PointOfInterestRequest
Find reachable openstreetmap pois with this class.
Only accepts
HttpMethod POST.-
Constructor Summary
ConstructorsConstructorDescriptionPointOfInterestRequest(TravelOptions travelOptions) Use default client implementation with specified options and method Default client usesClientBuilder.PointOfInterestRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions) Use a custom client implementation with specified options and methodPointOfInterestRequest(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 -
Method Summary
Modifier and TypeMethodDescriptionget()Execute poi reachability requestExecute gravitation poi requestExecute poi inside geometry requestExecute poi inside geometry summary requestExecute poi reachability summary request
-
Constructor Details
-
PointOfInterestRequest
Use default client implementation with specified options and method Default client usesClientBuilder.- Parameters:
travelOptions- Options to be used
-
PointOfInterestRequest
Use a custom client implementation with specified options and method- Parameters:
client- Client implementation to be usedtravelOptions- Options to be used
-
PointOfInterestRequest
public PointOfInterestRequest(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 usedtravelOptions- Options to be usedheaders- List of custom http headers to be used
-
-
Method Details
-
get
Execute poi reachability request- Returns:
- point of interest response
- Throws:
TargomoClientException- In case of error other than Gateway Timeout
-
getSummary
Execute poi reachability summary request- Returns:
- point of interest summary response
- Throws:
TargomoClientException- In case of error other than Gateway Timeout
-
getPOIsWithinGeometry
Execute poi inside geometry request- Returns:
- point of interest response
- Throws:
TargomoClientException- In case of error other than Gateway Timeout
-
getPOIsWithinGeometrySummary
Execute poi inside geometry summary request- Returns:
- point of interest summary response
- Throws:
TargomoClientException- In case of error other than Gateway Timeout
-
getGravitationAnalysis
Execute gravitation poi request- Returns:
- point of interest gravitation response
- Throws:
TargomoClientException- In case of error other than Gateway Timeout
-