Skip to content Skip to main navigation Skip to footer

Fixed Fares Based on Distance Ranges

This example shows how to charge a fixed fare based on the total distance of a ride. The price stays the same within each distance range, regardless of the exact number of kilometers traveled. The configuration uses four Pricing Rules, one for each distance range.

Pricing Scenario

A transportation company wants to offer predictable, fixed fares for short, medium, and long-distance journeys. The customer pays the price assigned to the distance range rather than a per-kilometer rate.

Total Distance Fixed Fare
0–10 km $30.00
10–20 km $50.00
20–40 km $80.00
40 km and above $120.00

For example, a 12 km ride and an 18 km ride both cost $50.00. The price changes only when the journey falls into another distance range.

Step 1. Configure Vehicle Pricing

Go to ‘Chauffeur Booking System’ -> ‘Vehicles’, edit the vehicle you want to use, and open the ‘Prices’ tab.

Setting Value
‘Booking Sum Type’ ‘Variable’
‘Initial’ 0.00
‘Per Kilometer’ 0.00

For this example, leave other vehicle price components at 0.00 to avoid additional charges. The fixed fares will be defined in the Pricing Rules, not in the vehicle price table.

Step 2. Create Four Pricing Rules

Go to ‘Chauffeur Booking System’ -> ‘Pricing Rules’ and click ‘Add New’. Create a separate rule for each distance range.

Conditions

For each rule, open ‘Conditions’ -> ‘General’ and select ‘Distance’ under ‘Service Types’. Under ‘Conditions’ -> ‘Vehicles’, select the vehicle configured in Step 1.

In ‘Conditions’ -> ‘Distance’, add one row to the ‘Distance’ table for each rule, using the matching range below. Only the ‘From’ and ‘To’ values are needed because the fare is defined directly in the ‘Prices’ tab.

Pricing Rule From (km) To (km)
Rule 1 0 10
Rule 2 10 20
Rule 3 20 40
Rule 4 40 9999

Keep adjacent ranges connected at the same boundary, for example 0–10 and 10–20. A ride of exactly 20 km uses the 20–40 km range.

Prices

In the ‘Prices’ tab of each rule, use the following shared settings:

Setting Value
‘Price Source Type’ ‘Set directly in the "Prices" tab’
‘Booking Sum Type’ ‘Fixed’

Then find the ‘Fixed’ row in the price table, choose ‘Set value’ under ‘Price Alter’, and enter the amount assigned to that rule:

Pricing Rule Distance Range Fixed Value
Rule 1 0–10 km $30.00
Rule 2 10–20 km $50.00
Rule 3 20–40 km $80.00
Rule 4 40 km and above $120.00

Publish each rule after entering its settings. With non-overlapping distance ranges, only the rule matching the requested journey distance should apply.

Example Price Calculations

Ride Distance Matching Range Final Price
2 km 0–10 km $30.00
9.3 km 0–10 km $30.00
10.8 km 10–20 km $50.00
14.1 km 10–20 km $50.00
20 km 20–40 km $80.00
25.2 km 20–40 km $80.00
33 km 20–40 km $80.00
40 km 40 km and above $120.00
81.7 km 40 km and above $120.00

The plugin selects the rule matching the total distance and applies its fixed fare. For example, a 25.2 km ride costs $80.00 rather than multiplying 25.2 by a per-kilometer rate.

Summary

Document version: 2.0
Last updated: November 25, 2026
Plugin version: 9.8+

Was This Article Helpful?