Create some sort of endpoint/group of functions which determine the price of a ride.
Architectural Design:
A potential solution could be to have a couple pricing models (as objects) which change based upon distance traveled during a ride. Then, once a ride is created, we link the closest matching model to a ride.
Create some sort of endpoint/group of functions which determine the price of a ride.
Architectural Design: A potential solution could be to have a couple pricing models (as objects) which change based upon distance traveled during a ride. Then, once a ride is created, we link the closest matching model to a ride.
@Raajesh12 Good design?