[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"blog-trans-taxi-bot-fare-calculation-en":3},{"title":4,"excerpt":5,"body":6},"How Fare Calculation Works in a Taxi Bot: From Location to Receipt","How a taxi bot calculates the trip price: map integration, a flexible fare formula, zones, car classes, and dynamic surcharges.","\u003Cp>One of a passenger's biggest fears when ordering a taxi outside the aggregators is opaque pricing. Nobody wants to get in a car guided by a vague \"we'll figure it out on the way\". The client wants a fixed, clear price before they ever tap the order button.\u003C\u002Fp>\n\u003Cp>In modern Telegram taxi bots this process is fully automated — the bot calculates the price in a fraction of a second. Let's look at the \"magic\" happening under the hood and how to tune the system for your business.\u003C\u002Fp>\n\u003Ch2>How the bot learns the distance: map integration (API)\u003C\u002Fh2>\n\u003Cp>To calculate the price, the bot needs the exact route. For that it's connected to mapping services through an API (Google Maps, OpenStreetMap, or similar).\u003C\u002Fp>\n\u003Cul>\n\u003Cli>The passenger shares a location or types an address (for example, \"15 Lenina St.\").\u003C\u002Fli>\n\u003Cli>The bot asks for the destination (for example, \"Airport\").\u003C\u002Fli>\n\u003Cli>Through the maps API the bot instantly builds the optimal route, accounting for real road conditions.\u003C\u002Fli>\n\u003Cli>The service returns precise figures: distance in kilometers and estimated travel time.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>What makes up the fare? Configuring the formula\u003C\u002Fh2>\n\u003Cp>Once it has the mileage, the bot activates the fare grid you set up. A popular base formula:\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Total price = Pickup fee + (Number of km × Price per km) + (Travel time × Price per minute)\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Which parameters you can configure in the bot's panel:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Minimum price (pickup):\u003C\u002Fstrong> the amount a trip cannot go below (for example, $3 with the first 2 km included).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Zoning (city \u002F intercity):\u003C\u002Fstrong> within the city a kilometer costs $0.40, and when you cross the city line the rate switches to $0.70 per km.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Car classes:\u003C\u002Fstrong> different rates for \"Economy\", \"Comfort\", or \"Minivan\" — the bot offers a choice before checkout.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Advanced features: dynamic pricing\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Night rate:\u003C\u002Fstrong> an automatic 20–30% increase to the per-kilometer price from 10:00 p.m. to 6:00 a.m.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Holiday surcharges:\u003C\u002Fstrong> a higher rate set manually or by calendar (on New Year's Eve, for example).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Paid options:\u003C\u002Fstrong> \"Child seat\" (+$2), \"Pet transport\" (+$3) — the bot instantly recalculates the total.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>How it looks for the passenger and the driver\u003C\u002Fh2>\n\u003Cp>When the calculation is done, the bot sends the passenger a tidy card:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>📍 From: 15 Lenina St.\u003C\u002Fli>\n\u003Cli>🏁 To: Airport, Terminal A\u003C\u002Fli>\n\u003Cli>🛣 Distance: 24 km\u003C\u002Fli>\n\u003Cli>⏱ Travel time: ~35 min\u003C\u002Fli>\n\u003Cli>💳 Price: $11 (\"Comfort\" rate)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>If the passenger taps \"Order\", drivers in the work chat see exactly the same transparent card. No arguments at the end of the trip — the price is locked in the chat.\u003C\u002Fp>\n\u003Ch2>Summary\u003C\u002Fh2>\n\u003Cp>Automatic fare calculation turns a simple chat into a professional, trustworthy taxi service. By setting up flexible rates and connecting maps, you automate the dispatcher's work and protect the business from the human factor and calculation errors.\u003C\u002Fp>",1783595345394]