public class TransportationNetworkCompanyService extends Object implements Serializable
Constructor and Description |
---|
TransportationNetworkCompanyService() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(TransportationNetworkCompanyDataSource source) |
List<ArrivalTime> |
getArrivalTimes(String companies,
Place place)
Get the ETA estimates from the specified TNC companies
|
List<RideEstimate> |
getRideEstimates(String companies,
Place fromPlace,
Place toPlace) |
public void addSource(TransportationNetworkCompanyDataSource source)
public List<ArrivalTime> getArrivalTimes(String companies, Place place) throws ExecutionException, InterruptedException
companies
- A comma-separated string listing the companies to request fromplace
- The pickup point from which to request an ETA fromExecutionException
InterruptedException
public List<RideEstimate> getRideEstimates(String companies, Place fromPlace, Place toPlace) throws ExecutionException, InterruptedException
Copyright © 2020. All rights reserved.