uber_requests_estimate: Request estimate

View source: R/api.R

uber_requests_estimateR Documentation

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

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

## End(Not run)

DataWookie/ubeR documentation built on Jan. 31, 2024, 3:15 a.m.