Prerequisites
- Node.js >= 18
- npm >= 9
Run locally
Configure environment variables
Copy the example environment file to create your local The default values are ready to use for local development:
.env:.env
Start the development server
Make your first fare calculation
Send a The API responds with the calculated fare and full traceability details:The
POST request with the origin and destination neighborhood names:tarifa field is the fare in Colombian pesos (COP). The tipo field is either "diurna" (day rate) or "nocturna" (night rate, applied from 7:00 p.m. to 5:59 a.m.). The recargos array lists any active surcharges, such as the $600 COP holiday surcharge applied on Jueves/Viernes Santo and December 16–31.Next steps
Core concepts
Learn how fare priority works — special routes, terminal table, general sector table, night rates, and holiday surcharges.
API reference
Full request and response schemas for all endpoints, including error codes and validation rules.