Uber API retrieve driver history - uber-api

on Uber developer documentation i have seen that is possible to retrieve the histroy trip about user.
Is possible to retrieve the list of driver trip with start city and end city into response?

The /trips endpoint with the Driver API is essentially /history for drivers. You are correct that this does not include end city, just the start city: https://developer.uber.com/docs/drivers/references/api/v1/partners-trips-get
So if you need the destination location for Driver history, that is currently not possible with Driver API. Thanks for the request, but no changes imminent there.

Related

For Uber Development API, Is it possible to pass source and destination address as parameters to get cost estimation response

For Uber ride requests, it requires start location(start Geo Location), end location(end Geo Location) and fair Id.
As from user perspective, i can pass source and destination address.
Is it possible to pass start and end location as address which is given by the user or needs to manually convert the address as geo location using any google api's.
the third parameter fair Id, where should i find the fair id?
I have read the developer.uber.com document, for start location and end location, geo locations are mandatory and start and end address are optional.
Kindly assist to solve the issue.
For version v1.2, you must pass the latitude and longitude of the place. The best solution is to use another api to get the latitude/longitude of a place then send the lat/longitude to thje uber api. There are a few free lat/longitude apis out there, such as google location api.
Answering this for others who may look for this in the future, since I had same question a few weeks ago.

Using Uber Driver API to know when pickups are going to happen?

Is there a way to use the Uber Driver API to be notified when the driver is a certain distance away from doing a pickup?
No, this is not one of the endpoints on the Uber driver API. The existing endpoints are profile, payments, & trips: https://developer.uber.com/docs/drivers/introduction
Real time availability / status of a driver is not a current existing driver API endpoint.

Uber API to detect rides

Is it possible to use the Uber API to detect rides that originated from the Uber app?
I'm trying to get a machine learning system to learn when you are using uber.
No, whether a ride originated from the Uber app or from a separate integration is not a field/endpoint in the current Uber API.
Not sure if this is exactly what you are looking for but something that might be helpful is the /history endpoint. "The User Activity endpoint returns a limited amount of data about a user’s lifetime activity with Uber. The response will include pickup and dropoff times, the city the trips took place in, the distance of past requests, and information about which products were requested."
Documentation: https://developer.uber.com/docs/riders/references/api/v1.2/history-get

using history api of Uber

I am trying to build a process to consume history api of Uber to display details of the users trips on one of my webpage. Has anyone done this?
I see that api definition on the UBER site
https://developer.uber.com/docs/rides/api/v12-history
However this does not provide how to provide the driver id? How can i get to the history of one particular driver?
All i need is trip details for every driver - assuming the driver id is available.
Any request sample will actually help.
Uber currently does not have API endpoints that provide information about driver activity. This is something we are considering, but at this time we do not have any public plans for a release.
Thanks for your interest in the Uber API. Follow #Uber_API and visit devblog.uber.com for updates and announcements.

Can you request a driver's info via Uber API?

Can you request a driver's car make/model, name, location, and rating via Uber API?
When a user is on a trip, all of that information is available to you (with regards to the driver who is currently giving the user a ride) when you request the status of the users trip: https://developer.uber.com/docs/v1-requests-current
If you're asking wether that information can be obtained about the user themselves (if they are also a driver), that feature is not currently supported by the Uber API.