Skip to content

Exercise - Ander Taxi

  • A passenger may request a taxi ride, sending their current location and their desired destination.
  • The system will pick one ore more available taxi drivers (prefer drivers that are close to the passenger).
  • The taxi driver can accept or decline rides.
  • The system makes sure that only one taxi driver is assigned to pick up a passenger.
  • A taxi driver is in one of the following states:
    • Unavailable
    • Available
    • OfferedRide
    • OnRouteToPassenger
    • OnRouteToDestination
  • A taxi driver will at all times report its current location and state to the system.
  • Passengers will receive an invoice upon a completed ride, based on the distance and a rate (€/km).
  • The system will log all messages.