uber_requests_estimate: Request estimate

Description Usage Arguments Details References Examples

View source: R/api.R

Description

Allows a ride to be estimated given the desired product, start, and end locations. If the end location is not provided, only the pickup ETA and details of surge pricing information are provided. If the pickup ETA is null, there are no cars available, but an estimate may still be given to the user.

Usage

1
2
uber_requests_estimate(start_latitude = NULL, start_longitude = NULL,
  end_latitude = NULL, end_longitude = NULL)

Arguments

start_latitude

Initial latitude.

start_longitude

Initial longitude.

end_latitude

Final latitude.

end_longitude

Final longitude.

Details

Requires an OAuth 2.0 token with the request scope.

References

https://developer.uber.com/docs/ride-requests/references/api/v1-requests-estimate-post

Examples

1
2
3
4
5
## Not run: 
uber_requests_estimate(start_latitude = 37.761492, start_longitude = -122.423941,
                       end_latitude = 37.775393, end_longitude = -122.417546)

## End(Not run)

ubeR documentation built on May 30, 2017, 1:41 a.m.