Favourite Locations


GET /v1/user/favourites

Users on your platform can book rides from or to locations saved as favorites in their Ola account. There are three types of favorites - Home, Work and Others (Custom)

Example Request

GET

https://devapi.olacabs.com/v1/user/favourites

Headers: {
Authorization: Bearer 96121212f12ff12f12f1f12f1f12f2
x-app-token: fd6121212f12ff12f12f1f12f1f12fa
}

Example Response (Success)

Call Driver

    

[

    {
        "lat": 12.9335,
        "lng": 77.6235,
        "city": null,
        "state": null,
        "country": null,
        "name": "Work",
        "pin_code": null,
        "address_line1": "Ezone, Koramangala Bengaluru Karnataka India",
        "address_type": "WORK"  },
    {
        "lat": 12.956207454428235,
        "lng": 77.65344992280005,
        "city": null,
        "state": null,
        "country": null,
        "name": "Home",
        "pin_code": null,
        "address_line1": "6, NAL Wind Tunnel Road, Kaveri Nagar, Murgesh Pallya, Bengaluru, Karnataka 560017, India",
        "address_type": "HOME"},
    {
        "lat": 12.9504,
        "lng": 77.6447,
        "city": null,
        "state": null,
        "country": null,
        "name": "Gym",
        "pin_code": null,
        "address_line1": "10/3, Embassy Golf Links Road, Embassy Golf Links Business Park, Domlur, Bengaluru, Karnataka 560017, India",
        "address_type": "OTHER"
    }
]