Answer the question
In order to leave comments, you need to log in
How do taxi services take into account the peculiarities of cities?
I do a taxi service. I look at other services and see that they have different tariffs in different cities. But it can still be stored normally in the database. Create a rates table with city_id, per_km, per_min, min columns. But for example, Yandex has some additional fields in different cities. From the metro this is more expensive, etc. How do they implement all this? I think in packs of shit code (a lot of if) or how can I do it more beautifully?
Answer the question
In order to leave comments, you need to log in
Of course, everything is decided in Ya.Taxi
packs of shit code, do not doubt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question