TransportechAI Docs
Dispatch

Trip Import

Import trip records from external sources into TransportechAI -- upload CSV files, map columns, validate data, and reconcile imported trips with your dispatch records.

The Trip Import page allows you to bring trip data from external sources into your TransportechAI dispatch system. Whether you need to import historical records from a previous system, upload platform trip data that cannot be synced via API, or reconcile trip logs from a third-party provider, this tool handles the process.

Navigation: Dispatch > Trip Import

Purpose

Not all trip data originates within TransportechAI. You may have drivers working on platforms without direct API integration, or you may be migrating from another dispatch system. The Trip Import feature allows you to:

  • Upload trip records via CSV or Excel files
  • Map external data columns to TransportechAI fields
  • Validate imported data before committing it to the system
  • Review and correct errors during the import process
  • Track import history for audit purposes

Import History

The main page displays a table of all previous import operations.

Table Columns

ColumnDescription
Import IDSystem-generated unique identifier for the import batch
DateWhen the import was performed
SourceThe file name or platform the data came from
Total RecordsThe total number of trip records in the file
ImportedThe number of records successfully imported
SkippedThe number of records that were skipped (duplicates or already existing)
ErrorsThe number of records that failed validation
StatusCompleted, Partially Completed, or Failed
Imported ByThe user who performed the import

Importing Trips

Click the Import Trips button to start a new import. The process follows a step-by-step wizard.

Step 1: Upload File

FieldTypeRequiredDescription
Source PlatformDropdownNoSelect the platform the data comes from (Uber, Careem, Bolt, Other, or Manual)
FileFile UploadYesUpload a CSV or Excel (.xlsx) file containing trip records

Supported file formats:

FormatExtensionNotes
CSV.csvComma-separated values, UTF-8 encoding recommended
Excel.xlsxMicrosoft Excel format

If you select a known platform (e.g., Uber) as the source, the system will attempt to auto-detect the column mapping based on the platform's standard export format. This saves time on the mapping step.

Step 2: Column Mapping

After uploading the file, the system displays a preview of the first few rows and asks you to map each column in your file to the corresponding TransportechAI field.

Required Mappings

TransportechAI FieldDescriptionExample Source Column
Trip DateThe date of the trip"Date", "Trip Date", "Pickup Date"
Pickup TimeThe time the trip started"Start Time", "Pickup Time"
Pickup LocationThe pickup address or coordinates"From", "Pickup Address"
Dropoff LocationThe dropoff address or coordinates"To", "Dropoff Address"
DriverThe driver who performed the trip"Driver Name", "Driver ID"
FareThe trip fare amount"Total Fare", "Amount", "Earnings"

Optional Mappings

TransportechAI FieldDescriptionExample Source Column
Dropoff TimeThe time the trip ended"End Time", "Dropoff Time"
DistanceTrip distance"Distance (km)", "Miles"
DurationTrip duration"Duration", "Trip Time"
VehicleThe vehicle used"Vehicle", "Plate Number"
ClientThe client or passenger"Rider", "Passenger Name"
Payment MethodHow the fare was collected"Payment Type", "Payment Method"
Platform CommissionCommission taken by the platform"Service Fee", "Commission"
TipsTip amount"Tip", "Tips"
Trip TypeCategory of the trip"Trip Type", "Category"
External Trip IDThe trip ID from the external system"Trip ID", "Reference"
NotesAny additional notes"Notes", "Comments"

Step 3: Data Validation

After mapping columns, the system validates all records against business rules:

ValidationDescription
Required FieldsEnsures all required fields have values
Date FormatValidates that dates and times are in a parseable format
Numeric ValuesConfirms that fares, distances, and durations are valid numbers
Driver MatchingAttempts to match driver names or IDs to existing drivers in the system
Duplicate DetectionChecks for trips that already exist in the system (based on date, driver, and time)
Vehicle MatchingAttempts to match vehicles to existing fleet records

Records that fail validation are flagged and displayed in an error summary:

Error TypeDescriptionResolution
Missing Required FieldA required value is emptyEdit the record to add the missing value, or skip the record
Invalid DateThe date format could not be parsedCorrect the date format in the source file and re-upload, or edit inline
Driver Not FoundThe driver name or ID does not match any driver in the systemMap to an existing driver or create a new driver record
Duplicate TripA trip with the same driver, date, and time already existsSkip the record or force import (creates a duplicate)
Invalid FareThe fare amount is not a valid numberCorrect the value

Always review the validation results carefully before proceeding. Importing invalid data can lead to incorrect financial reports and driver compensation calculations.

Step 4: Review and Confirm

A summary screen shows:

SectionDescription
Records to ImportTotal number of valid records ready for import
Records to SkipNumber of records that will be skipped (duplicates, errors)
Unresolved ErrorsNumber of records with unresolved validation issues
Estimated RevenueSum of fares from the records to be imported

Click Confirm Import to finalize. The system imports the records and displays a completion summary.

Post-Import Review

After an import completes, you can:

View Imported Trips

Click on an import batch in the Import History table to see all trips that were imported in that batch. From here you can:

  • Open any individual trip to verify details
  • Edit trip records if corrections are needed
  • Delete incorrectly imported records

Error Report

For batches with errors, download the Error Report to see which records failed and why. This report includes the original row data alongside the specific validation errors, making it easy to correct the source file and re-import.

Driver Matching

One of the most critical steps in the import process is matching drivers from the external data to your TransportechAI driver records. The system uses the following matching logic:

PriorityMatch ByExample
1Driver IDIf the external system's driver ID has been mapped in Platform Integration
2Full Name (exact)"Ahmed Al Rashid" matches "Ahmed Al Rashid"
3Full Name (fuzzy)"Ahmed Rashid" may match "Ahmed Al Rashid" with a confidence score
4Phone NumberIf the external data includes driver phone numbers

For the best results, use the Platform Integration driver mapping feature to link external platform IDs to your drivers before importing. This ensures accurate and automatic matching.

Import Templates

To simplify repeated imports, you can download pre-formatted templates:

TemplateDescription
Generic TemplateA blank CSV with all supported columns and example data
Uber Export TemplateColumn layout matching Uber's standard trip export
Careem Export TemplateColumn layout matching Careem's standard trip export
Custom TemplateBased on a previous successful import's column mapping

Best Practices

Before performing a large import, test with a small sample file (10--20 records) to verify that your column mapping and driver matching are correct. This prevents having to clean up large batches of incorrectly imported data.

Schedule regular imports (e.g., weekly) for platforms that do not support real-time API sync. Consistent import schedules ensure your dispatch data stays current without large catch-up batches.

Imported trip data affects financial calculations, including driver commissions and revenue reports. Always verify import accuracy with your finance team, especially for the first few batches from a new data source.