Package com.targomo.client.api.request
Class OverpassRequest
java.lang.Object
com.targomo.client.api.request.OverpassRequest
Find reachable openstreetmap pois with this class.
Only accepts
HttpMethod POST.-
Constructor Summary
ConstructorsConstructorDescriptionOverpassRequest(TravelOptions travelOptions) Use default client implementation with specified options and method Default client usesClientBuilder.OverpassRequest(TravelOptions travelOptions, PoiType poiTye) Use default client implementation with specified options and method and a specific PoI type Default client usesClientBuilder.OverpassRequest(TravelOptions travelOptions, javax.ws.rs.client.Client client, PoiType poiType) Use a custom client implementation with specified options and method and a specific PoI typeOverpassRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions) Use a custom client implementation with specified options and method Default PoI type is the first taken from the osmTypes in travel options -
Method Summary
-
Constructor Details
-
OverpassRequest
public OverpassRequest(TravelOptions travelOptions, javax.ws.rs.client.Client client, PoiType poiType) Use a custom client implementation with specified options and method and a specific PoI type- Parameters:
client- Client implementation to be usedtravelOptions- Options to be usedpoiType- the Point of Interest type used for the request
-
OverpassRequest
Use default client implementation with specified options and method and a specific PoI type Default client usesClientBuilder.- Parameters:
travelOptions- Options to be usedpoiTye- the Point of Interest type used for the request
-
OverpassRequest
Use a custom client implementation with specified options and method Default PoI type is the first taken from the osmTypes in travel options- Parameters:
client- Client implementation to be usedtravelOptions- Options to be used
-
OverpassRequest
Use default client implementation with specified options and method Default client usesClientBuilder. Default PoI type is the first taken from the osmTypes in travel options- Parameters:
travelOptions- Options to be used
-
-
Method Details
-
get
Execute request- Returns:
- point of interest response
- Throws:
TargomoClientException- In case of error other than Gateway Timeout
-