- The application allows users to book rides on a route.
- Users can register themself.
- Driving partner can onboard on the system with the vehicle details
- Users can search and select one from multiple available rides on a route with the same source and destination based on the nearest to the user.
- Drivers who are within 5 Kms from the users source will be available for booking.
- You can consider x-coordinate and y-coordinate for positions.
- Application should allow user onboarding.
- add_user
- Add basic user details
- add_user
- Application should allow Driver onboarding
- add_driver
- This will create an instance of the driver and will mark his current location on the map
- add_driver
- Application should allow the user to find a ride based on the criteria below
- find_ride
- It will return a list of available rides within 5 unit of distance
- book_ride
- It will book the ride and update the position of the driver and the user to the destination given
- find_ride
PUT /masaicab/user/book/{driverId}/{x}/{y} 200(OK) User can book the ride by entering the id of available driver and destination coordinates
JAVA HIBERNATE MAVEN SPRING SPRING BOOT SPRING DATA JPA JDBC MySQL