Package com.targomo.client.api.request
Class TransitStopsRequest
java.lang.Object
com.targomo.client.api.request.TransitStopsRequest
Get all the transit stations reachable from source(s) and the times of the next stops
Only accepts
HttpMethod POST.-
Constructor Summary
ConstructorsConstructorDescriptionTransitStopsRequest(TravelOptions travelOptions) Use default client implementation with specified options and method Default client usesClientBuilder.TransitStopsRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions) Use a custom client implementation with specified options and methodTransitStopsRequest(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
-
Constructor Details
-
TransitStopsRequest
Use default client implementation with specified options and method Default client usesClientBuilder.- Parameters:
travelOptions- Options to be used
-
TransitStopsRequest
Use a custom client implementation with specified options and method- Parameters:
client- Client implementation to be usedtravelOptions- Options to be used
-
TransitStopsRequest
public TransitStopsRequest(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 used
-
-
Method Details
-
get
public Map<String,List<TransitStation>> get() throws TargomoClientException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
TargomoClientExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
get
public Map<String,List<TransitStation>> get(Boolean filterEmptyNextStops) throws TargomoClientException, com.fasterxml.jackson.core.JsonProcessingException Execute request- Returns:
- Map keys - source id values - list of reachable transit stations
- Throws:
TargomoClientException- In case of error other than Gateway Timeoutcom.fasterxml.jackson.core.JsonProcessingException
-