@Path(value="/routers/{routerId}/transportation_network_company")
public class TransportationNetworkCompanyResource
extends Object
| Constructor and Description |
|---|
TransportationNetworkCompanyResource() |
| Modifier and Type | Method and Description |
|---|---|
TransportationNetworkCompanyResponse |
getEtaEstimates(String from,
String companies,
String routerId) |
TransportationNetworkCompanyResponse |
getRideEstimate(String from,
String to,
String company,
String rideType,
String routerId) |
public TransportationNetworkCompanyResource()
@GET
@Path(value="/eta_estimate")
@Produces(value={"application/json","application/xml;qs=0.5","text/xml;qs=0.5"})
public TransportationNetworkCompanyResponse getEtaEstimates(@QueryParam(value="from")
String from,
@QueryParam(value="companies")
String companies,
@PathParam(value="routerId")
String routerId)
@GET
@Path(value="/ride_estimate")
@Produces(value={"application/json","application/xml;qs=0.5","text/xml;qs=0.5"})
public TransportationNetworkCompanyResponse getRideEstimate(@QueryParam(value="from")
String from,
@QueryParam(value="to")
String to,
@QueryParam(value="company")
String company,
@QueryParam(value="rideType")
String rideType,
@PathParam(value="routerId")
String routerId)
Copyright © 2020. All rights reserved.