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.
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.
How the bot learns the distance: map integration (API)
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).
- The passenger shares a location or types an address (for example, "15 Lenina St.").
- The bot asks for the destination (for example, "Airport").
- Through the maps API the bot instantly builds the optimal route, accounting for real road conditions.
- The service returns precise figures: distance in kilometers and estimated travel time.
What makes up the fare? Configuring the formula
Once it has the mileage, the bot activates the fare grid you set up. A popular base formula:
Total price = Pickup fee + (Number of km × Price per km) + (Travel time × Price per minute)
Which parameters you can configure in the bot's panel:
- Minimum price (pickup): the amount a trip cannot go below (for example, $3 with the first 2 km included).
- Zoning (city / intercity): within the city a kilometer costs $0.40, and when you cross the city line the rate switches to $0.70 per km.
- Car classes: different rates for "Economy", "Comfort", or "Minivan" — the bot offers a choice before checkout.
Advanced features: dynamic pricing
- Night rate: an automatic 20–30% increase to the per-kilometer price from 10:00 p.m. to 6:00 a.m.
- Holiday surcharges: a higher rate set manually or by calendar (on New Year's Eve, for example).
- Paid options: "Child seat" (+$2), "Pet transport" (+$3) — the bot instantly recalculates the total.
How it looks for the passenger and the driver
When the calculation is done, the bot sends the passenger a tidy card:
- 📍 From: 15 Lenina St.
- 🏁 To: Airport, Terminal A
- 🛣 Distance: 24 km
- ⏱ Travel time: ~35 min
- 💳 Price: $11 ("Comfort" rate)
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.
Summary
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.
Related templates
Ready to automate your business?
More than 15,000 bots have already been created on the platform
Create chatbotFree trial — no card required