Is it possible to discover the kind of vehicle a ride was completed with from the Uber API? - uber-api

As the title: I'd like to be able to access a specific ride for the signed-in user and know if the vehicle in question was a Prius, Ford Galaxy, E-Class, or whatever. I don't see this in the documentation for the Riders or Rides API - is there any way to get the information?

Yes. You can get the Make, Model, and even license plate from the Uber API by looking at the current trips (You would just have to filter for a status of completed):
https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-get
The response includes details of the vehicle:
"vehicle": {
"make": "Bugatti",
"model": "Veyron",
"license_plate": "I<3Uber",
"picture_url": "https:\/\/d1w2poirtb3as9.cloudfront.net\/car.jpeg"
}
Note that retrieving this data for rides requested by an app other than your own (i.e. for any rider) requires FULL ACCESS scope for your app:
Privileged Scope This endpoint requires a privileged scope to be used
in production by all Uber riders. You can use this endpoint
immediately when authenticated as yourself or any of your 5 registered
developers. When you are ready to distribute your application broadly
for use by all Uber riders, you may request FULL ACCESS. For more
information read about scopes.

Related

Uber API: API method/CVS sheet to get full rides info for each rider in the company

We have an Uber company-level account with a lot of autos working in the Uber application (~ 50-100 depends on several cases).
Now we are building analytic app, that aggregates information about each car earnings/rides for each our driver.
Do we need to get "Uber for Business" to get aggregated information for each driver/rides from https://developer.uber.com/docs/businesses/data-automation/data-download, or we need to build application, where each our rider needs to authorize to grant access to its information with bearer token, and iterate over each token on endpoints https://developer.uber.com/docs/drivers/references/api/v1/partners-payments-get and https://developer.uber.com/docs/drivers/references/api/v1/partners-trips-get?
I think, that last method is the crooked nail for us.

HereMaps - These credentials do not authorize access. Can't get valid response for Public Transit API

I have registered for a public 90-day free trial on HereMaps few days ago and I can't get a valid response for a public transit api. Routing works properly but that API doesn't. I call example request from documentation with my valid credentials:
https://transit.cit.api.here.com/v3/route.json
?app_id={APP_ID}
&app_code={APP_CODE}
&routing=all
&dep=41.9773,-87.9019
&arr=41.8961,-87.6552
&time=2017-12-11T07%3A30%3A00
after calling it, I receive that response:
{
"Res": {
"serviceUrl": "https://transit.cit.api.here.com/transit/v3/route.json",
"Message": {
"code": "I4",
"level": "E",
"text": "These credentials do not authorize access. Please contact your customer representative or submit a request here https://developer.here.com/contact-us to upgrade your account. You can also get valid credentials by registering for a free trial license on https://developer.here.com."
}
}
}
Any idea, what I'm doing wrong? I thought, that It might be due non-updated database on server-side, bud this seems to not be the problem. Thanks for your time.
Please find the reason and explanation below:
https://developer.here.com/faqs#general
How do I evaluate the HERE Platform?
HERE offers a free trial of its web APIs and Mobile SDKs. To register for a free trial, please signup.
Please note that to access the following features we need to whitelist your evaluation app_id. Please contact us to request access to:
Batch Geocoding: allows the user to upload multiple addresses in a single file for geocoding.
Transit API Advanced Offering: access to advanced features of our Transit API, from early and late departures to real-time next departures and transit isoline.
Weather API: enrich mapping applications with weather-related data such as weather forecasts, severe weather alerts and astronomical information.
Fleet Connectivity Extension: RESTful web service that enables connectivity between a backend system and a navigation application.
Custom Route Extension: Build custom routes considering your own road restrictions and geometries.
Intermodal Routing: Provides alternative routes combining drive, park, ride and walk functionality, while taking into account real-time traffic and incidents information, public transit timetables and dynamic information.
I hope this helps!
Regards,
Alberto

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

Uber Ride API - Driver

We are busy looking at Uber Ride API and would like to find out the following:
Is all_trips scope applicable if OAuth authorized user is an Uber driver?
Will Webhook invoke events everytime when a driver accepts/cancels/completes a trips?
will Webhook be invoked during a real trip while the app is under development or Only work in Sandbox?
No. The all_trips scope only works for riders.
Yes. Every trip status change triggers a webhook. Possible statuses changes are:
processing
no_drivers_available
accepted
arriving
in_progress
driver_canceled
rider_canceled
completed.
(List pulled from here, according to the webhooks documentation here).
Yes. If you grant your app the all_trips scope, the Uber API will send webhooks to the URL you have registered at developer.uber.com/dashboard for every trip you take, i.e. sandbox and real trips alike. Note that there is currently no way to flag an Uber app as "in development" or "in production".

Is there functionality to request an Uber on another person's behalf?

My business opportunity would benefit from being able to request an Uber to pick up a client and arrive at my place of business, and not just the client requesting the Uber themselves. Is this something that I can do today with Uber?
edit: the origin of my request would be different than the requested pick-up location.
The Uber API gives you the ability to Request an Uber Product on behalf of users within your application. Given you know where a user currently is, where they want to go, and which Uber product they want to use to get there, you have all of the tools to make that happen with a few simple API endpoints.
Looks like I answered my own question :)