RideKit
Docs/Reference/Intercity route fares

Intercity route fares

Built: 2026-11-02. For the operator pricing outstation trips, and for whoever maintains the code.

Outstation trips are priced per km by default (Admin → Pricing → Intercity):

  • a base fare;
  • a one-way or round-trip per-km rate;
  • a driver allowance per day and a night allowance;
  • tolls and the state permit, as their own lines.

Indian riders expect a fixed one-way price per route, as Uber Intercity and Ola Outstation show. A route fare gives them that.

A route

Admin → Pricing → Intercity → Route fares → Add route:

  • From and To. Search for each city. Each end is the city's centre and a radius, 25 km by default, between 1 and 100 km. Use a small radius for an airport.
  • Both ways. On by default: Mumbai → Pune and Pune → Mumbai cost the same.
  • One-way fare per vehicle type. A type left blank is priced per km on this route.
  • Toll and state permit. Blank uses the market's figures. A toll of 0 means tolls are paid as they come.
  • On/off. Turning a route off returns its trips to per-km pricing.

Which trips use it. A one-way trip that starts inside one end and finishes inside the other, for a vehicle type that has a fare on the route. Round trips are always priced per km. When routes overlap, the route whose centres the trip is nearest wins; for example, a Mumbai Airport route beats a Mumbai city route for an airport pickup.

The price

  • What the fixed fare covers: the base fare, the distance and the driver's allowance.
  • What is added:
    • the toll and permit (the route's own, or the market's);
    • the night allowance, if the trip departs in the market's night window.
  • The rider's quote shows "Mumbai → Pune · fixed fare" as one line, then the toll, permit and night lines.
  • Extra distance. A trip that drives far beyond the route's distance is billed the overage at the one-way per-km rate, as before.

Tolls and permit are not commissioned. On every intercity trip, whether it uses a route fare or per-km pricing, the toll and permit are recorded on the ride as pass-through (rides.toll_minor). The driver gets them back in full, as with city tolls (docs/airports.md).

The drive back

A one-way trip leaves the car in the other city, and it comes home empty. The one-way per-km rate is higher than the round-trip rate for exactly that reason:

drive back = (one-way rate − round-trip rate) × the trip's distance

It is capped at the distance part of the fare. Every one-way offer shows it to the driver: "Includes ₹720.60 for your drive back empty". That holds for both route fares and per-km fares, so a one-way outstation trip does not look like a long city ride. The journey screen shows it again during the trip, and it is stored on the trip (return_empty_minor).

Code

Piece Where
Matching, fixed fare, drive back (pure) backend/src/journeys/intercity-routes.ts
Route storage and admin endpoints intercity-routes.service.ts; admin-intercity-routes.controller.ts (/admin/intercity-routes, pricing.manage)
Quote intercity-pricing.service.ts (routeId, routeName and returnEmptyMinor on each class)
Stored on the trip intercity_details.route_id, route_name, return_empty_minor
Migration 1700000115000-IntercityRoutes
Driver app Offer sheet (OfferSheet.tsx) and journey screen (app/(app)/journey.tsx)
Rider app src/lib/journey.ts (quoteLines: the route line)
Admin components/pricing/IntercityRoutes.tsx

Not built

  • Public route pages for search engines. For example, "Delhi to Raipur from ₹…". These belong to the marketing site.
  • Different prices by time. There are no route prices by day of week or season.
source: docs/intercity-routes.md (ships identically in the product zip)