nearbuy In Top Gear

on

uber 1

nearbuy won Uber’s first hackathon in Asia held in Delhi on 15th January 2016, which was attended by the who’s who of the tech community in Delhi-NCR. In total, 16 different teams participated in the event including Oyo Rooms, Zomato, Hike, Yatra etc.

Ever since we won the hackathon, we have been asked on multiple forums about what exactly we built. So, here’s a snapshot:

When we were first introduced to the Uber trip experiences API, we immediately knew we had a strong use case which could be solved using Uber’s API.

Let’s try to understand what we solved, by looking at a story

Ayush is a 30-year-old professional working in Gurgaon. Today is his wife’s birthday, and he wants to take her out for dinner. He opens the nearbuy app and browses through restaurants.

The restaurant he wants to go to is 6 kms away, and it will take him 30 minutes to reach there using Uber.

He purchases the offer, and after the payment is done, he’s prompted to book an Uber to visit the restaurant.

uber 2

Here, we call the Uber’s Ride Request APIs to make the booking on the app (and not through a deep-link) by authorizing the user via OAuth.

The beauty of this is that the user has conveniently made a booking to travel to his destination (restaurant) without having to open the Uber app or specify the destination. Pretty cool, no?

Now, the Uber reaches Ayush and he’s on his way to the restaurant with his wife.

While he’s on his way, we keep polling by hitting Uber’s trip experiences API to find out state changes. The moment we get a ‘Trip Started’, we send out a notification to Ayush asking him to select the dishes he wants to order from the menu or pass on any special preferences to the merchant. This way, the merchant is better prepared before he reaches the restaurant.

uber4

This information is sent to the merchant through a notification on the merchant app, which looks like this:

uber

While Ayush and his wife enjoy the Uber ride, they can also read about the restaurant they are going to:

uber5

Once Ayush reaches the restaurant

A notification is sent to Ayush’s phone. The restaurant voucher opens as soon as he clicks on the notification. This saves Ayush the trouble of having to search for the voucher in his mailbox or on the app.

Ayush shows the voucher to the merchant and enjoys dinner with his wife. The food already has less spice in it, as requested by him while sitting in the Uber! Talk about fancy!

uber6

After having the meal

Ayush redeems the voucher (equivalent of paying money). Here, he can either book an Uber back home (‘Home’ was saved in his settings in the Uber account), or click on ‘Discover More’ — which shows him an offers page with options such as PVR, desserts etc.

uber7

Ayush buys a PVR offer for half the regular price, watches a movie at the nearest PVR, and then takes an Uber back home.

This way, the entire journey of a nearbuy customer is completed by leveraging Uber’s API.

Facebook Comments

One Comment Add yours

  1. Kyle Hoa says:

    Aw, this was a really good post. Spending some time and actual effort to create a good article… but what can I say… I procrastinate a whole lot and don’t manage to get nearly anything done.

Leave a Reply

Your email address will not be published. Required fields are marked *