public class NoApiTransportationNetworkCompanyDataSource extends TransportationNetworkCompanyDataSource
wheelChairAccessibleRideType| Constructor and Description |
|---|
NoApiTransportationNetworkCompanyDataSource(int defaultArrivalTimeSeconds,
boolean isWheelChairAccessible)
For testing purposes only.
|
NoApiTransportationNetworkCompanyDataSource(com.fasterxml.jackson.databind.JsonNode config)
Configures the data source.
|
| Modifier and Type | Method and Description |
|---|---|
TransportationNetworkCompany |
getTransportationNetworkCompanyType() |
protected List<ArrivalTime> |
queryArrivalTimes(Position position)
In lieu of making an API request, this will merely return a single arrival estimate with the default arrive time.
|
protected List<RideEstimate> |
queryRideEstimates(RideEstimateRequest request)
In lieu of making an API request, this will merely return a single ride estimate with 0 duration and cost, but
with the wheelchair accessibility type that is possibly defined in the config.
|
getArrivalTimes, getRideEstimates, productIsWheelChairAccessiblepublic NoApiTransportationNetworkCompanyDataSource(com.fasterxml.jackson.databind.JsonNode config)
public NoApiTransportationNetworkCompanyDataSource(int defaultArrivalTimeSeconds,
boolean isWheelChairAccessible)
public TransportationNetworkCompany getTransportationNetworkCompanyType()
getTransportationNetworkCompanyType in class TransportationNetworkCompanyDataSourceprotected List<ArrivalTime> queryArrivalTimes(Position position) throws IOException
queryArrivalTimes in class TransportationNetworkCompanyDataSourceIOExceptionprotected List<RideEstimate> queryRideEstimates(RideEstimateRequest request) throws IOException
queryRideEstimates in class TransportationNetworkCompanyDataSourceIOExceptionCopyright © 2020. All rights reserved.