I feel that this API should just accept the trip id as the only parameter and return the info which includes trip ETA and driver location coordinates etc.,
Course: https://www.educative.io/collection/10370001/4941429335392256
Lesson: https://www.educative.io/collection/page/10370001/4941429335392256/5429357153091584