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, productIsWheelChairAccessible
public NoApiTransportationNetworkCompanyDataSource(com.fasterxml.jackson.databind.JsonNode config)
public NoApiTransportationNetworkCompanyDataSource(int defaultArrivalTimeSeconds, boolean isWheelChairAccessible)
public TransportationNetworkCompany getTransportationNetworkCompanyType()
getTransportationNetworkCompanyType
in class TransportationNetworkCompanyDataSource
protected List<ArrivalTime> queryArrivalTimes(Position position) throws IOException
queryArrivalTimes
in class TransportationNetworkCompanyDataSource
IOException
protected List<RideEstimate> queryRideEstimates(RideEstimateRequest request) throws IOException
queryRideEstimates
in class TransportationNetworkCompanyDataSource
IOException
Copyright © 2020. All rights reserved.