Different Per-Kilometer Rates Based on Total Distance
This example shows how to charge different per-kilometer rates depending on the total distance of a ride. The plugin selects one rate for the entire trip based on the distance range it falls into. The configuration uses one Pricing Rule.
Pricing Scenario
A transportation company offers lower per-kilometer rates for longer journeys. Once the total distance is calculated, the entire ride is priced using the rate assigned to that distance range.
| Total Distance | Rate per Kilometer |
|---|---|
| 0–10 km | $4.00 |
| 10–20 km | $3.00 |
| 20–40 km | $2.50 |
| 40 km and above | $2.00 |
For example, a 15 km ride costs 15 × $3.00 = $45.00. The price is not calculated by adding separate amounts for the first 10 km and the remaining 5 km.
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, so they do not add additional charges to the calculated fare.
Step 2. Create a Pricing Rule
Go to ‘Chauffeur Booking System’ -> ‘Pricing Rules’ and click ‘Add New’. Give the rule a descriptive name, such as Distance-Based Kilometer Rates.
Conditions
In ‘Conditions’ -> ‘General’, choose ‘Distance’ under ‘Service Types’. In ‘Conditions’ -> ‘Vehicles’, select the vehicle configured in Step 1.
Next, open ‘Conditions’ -> ‘Distance’ and add the following rows to the ‘Distance’ table:
| From (km) | To (km) | Price Alter Type | Price |
|---|---|---|---|
| 0 | 10 | ‘Set value’ | 4.00 |
| 10 | 20 | ‘Set value’ | 3.00 |
| 20 | 40 | ‘Set value’ | 2.50 |
| 40 | 9999 | ‘Set value’ | 2.00 |
Keep adjacent ranges connected at the same boundary, for example 0–10 and 10–20. In this configuration, a distance of exactly 20 km uses the next range (20–40 km).
Prices
Open the ‘Prices’ tab and configure:
| Setting | Value |
|---|---|
| ‘Price Source Type’ | ‘Calculation based on distance (exact range)’ |
| ‘Booking Sum Type’ | ‘Variable’ |
With ‘Calculation based on distance (exact range)’, the plugin identifies the matching range and applies its per-kilometer rate to the total distance. The rate does not change for individual portions of the same trip.
Example Price Calculations
| Ride Distance | Calculation | Final Price |
|---|---|---|
| 2 km | 2 × $4.00 | $8.00 |
| 5.8 km | 5.8 × $4.00 | $23.20 |
| 7.9 km | 7.9 × $4.00 | $31.60 |
| 15 km | 15 × $3.00 | $45.00 |
| 20 km | 20 × $2.50 | $50.00 |
| 25.2 km | 25.2 × $2.50 | $63.00 |
| 81.7 km | 81.7 × $2.00 | $163.40 |
| 738.6 km | 738.6 × $2.00 | $1,477.20 |
The difference between this example and progressive distance pricing is that one rate applies to the whole journey. For instance, a 25.2 km ride uses the $2.50/km rate for all 25.2 km, rather than charging each distance band separately.
Summary
Document version: 1.0
Last updated: November 24, 2026
Plugin version: 9.8+