Learn R Programming

ubeR (version 0.1.4)

uber_requests_estimate: Request estimate

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

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

Run this code
## Not run: ------------------------------------
# uber_requests_estimate(start_latitude = 37.761492, start_longitude = -122.423941,
#                        end_latitude = 37.775393, end_longitude = -122.417546)
## ---------------------------------------------

Run the code above in your browser using DataLab