Intermodal drayage carriers operating in major U.S. port complexes routinely encounter complex accessorial fees levied by marine terminal operators and port authorities. These fees - including PierPass traffic mitigation fees, Clean Truck Fund clean air fees, emergency infrastructure surcharges, and extended gate hour premiums - create persistent margin compression when they are not captured, validated, and passed through to beneficial cargo owners (BCOs) or steamship lines with precision.
Strong Tower Consulting, LLC and Exspeedite LLC are separately organized sister companies under common ownership (separate EINs; liability firewall). For more than 18 years we have helped motor carriers, freight brokers, and private fleets implement enterprise transportation management systems (TMS) that automate the full lifecycle of these accessorials. This technical authority guide details the software engineering patterns, database schemas, business rules engines, and integration workflows required to eliminate unrecovered terminal expenses.
The Margin Compression Challenge in Intermodal Drayage
Marine terminal authorities publish dynamic tariff schedules that change by time of day, day of week, and port-specific policy. A typical Los Angeles / Long Beach drayage move may incur:
- PierPass Traffic Mitigation Fee (TMF) - applied during peak hours
- Clean Truck Fund (CTF) fee - assessed per container for environmental compliance
- Extended Gate / OffPeak surcharge - for transactions outside standard business hours
- Congested Zone Tolls - variable fees tied to terminal-specific infrastructure cost recovery
- Emergency Infrastructure Surcharges - triggered by port authority declarations
When these fees are paid at the gate but not systematically billed to the customer, the carrier absorbs the cost. Manual reconciliation across thousands of daily transactions is error-prone and labor-intensive. An automated intermodal TMS engine solves this by treating accessorial rating as a deterministic, auditable process embedded in the load lifecycle.
Core Architecture: Geofencing, Timestamp Matching, and Rule Engine
The foundation of an effective congested zone surcharge solver is a combination of spatial geofencing, temporal tariff schedules, and a rules engine that operates at the transaction level.
Geofence Definition
Each marine terminal and rail ramp is modeled as a polygon (or buffered point) stored in a geospatial database. Modern TMS platforms use PostGIS or equivalent to define port boundaries. When a driver’s ELD or mobile application reports a gate transaction, the system performs a point-in-polygon test to determine which tariff schedule applies.
Tariff Schedule Modeling
Tariff schedules are stored in a normalized relational structure that supports effective dating and version control. A simplified schema includes:
CREATE TABLE accessorial_type (
id SERIAL PRIMARY KEY,
code VARCHAR(20) NOT NULL, -- e.g. PIERPASS, CTF, OFFPEAK
description TEXT,
pass_through BOOLEAN DEFAULT true
);
CREATE TABLE tariff_schedule (
id SERIAL PRIMARY KEY,
accessorial_type_id INTEGER REFERENCES accessorial_type(id),
terminal_code VARCHAR(10),
effective_from DATE,
effective_to DATE,
day_of_week INTEGER[], -- 0-6 for Sunday-Saturday
start_time TIME,
end_time TIME,
rate_numeric NUMERIC(8,2),
rate_type VARCHAR(10), -- FLAT, PERCENT, PER_CONTAINER
CONSTRAINT valid_time_range CHECK (start_time < end_time)
);
At transaction time the TMS executes a query that joins the gate timestamp, terminal geofence, and current tariff schedule to return the exact surcharge amount. This lookup must complete in under 200ms to support real-time driver workflows.
Automated Accessorial Rating Workflow
- Gate Event Ingestion - EDI 214, API webhook from terminal operator, or driver mobile application posts gate-in / gate-out timestamps with container number.
- Spatial & Temporal Validation - System confirms transaction occurred inside the terminal geofence and matches the transaction against the active tariff schedule.
- Business Rule Application - Carrier-specific rules determine whether the fee is 100% pass-through, subject to a markup, or absorbed. Rules are stored in a decision table that can be maintained by operations staff without code changes.
- Invoice Line Item Generation - Validated surcharge is inserted into the shipment’s invoice as a discrete, auditable line item with reference to the original gate transaction ID.
- Customer Billing Transmission - EDI 210 or API invoice includes itemized accessorials so BCOs and steamship lines can reconcile against their own records.
This workflow eliminates the “black hole” between terminal payment and customer billing that has historically eroded intermodal drayage margins.
Integration Points with Enterprise Systems
A production-grade surcharge solver cannot exist in isolation. It must integrate with several core systems:
- ELD and EDI Integration - Real-time ingestion of gate events from driver tablets and terminal operator APIs.
- Carrier Rate Matrix - Base line-haul rates stored alongside accessorial lookup tables so rating occurs in a single pass.
- Transportation Accounting Integration - GL account mapping for each accessorial type ensures proper revenue and expense recognition.
- Advanced Reporting - Dashboards that show unrecovered accessorial leakage by terminal, customer, and dispatcher.
Strong Tower Consulting, LLC specializes in TMS Implementation projects that establish these integrations while maintaining a clean liability firewall between operational TMS logic (Exspeedite) and strategic consulting services.
Database Design Best Practices for Accessorial Automation
Beyond the tariff schedule table, a robust implementation includes:
- Transaction Audit Log - Immutable record of every gate event, lookup result, and applied rule for compliance and dispute resolution.
- Customer Accessorial Agreement Table - Stores which BCOs accept automatic pass-through of specific fees versus those requiring manual approval.
- Exception Queue - Transactions that cannot be automatically rated (missing tariff, expired schedule, disputed timestamp) are routed to operations for review.
- Versioned Tariff Import - Port authorities frequently update fees. The system must support bulk import of new tariff CSV or XML files with staging and approval workflows.
When these structures are combined with Business Process Optimization, carriers achieve near-100% recovery of terminal accessorials that were previously written off.
Regulatory and Compliance Considerations
Port clean truck programs, environmental surcharges, and congestion pricing initiatives are subject to frequent regulatory change. The TMS rules engine must support rapid updates without redeploying application code. Strong Tower recommends storing all business logic in a metadata-driven rules engine that operations and compliance teams can maintain through a secure administrative interface.
Additionally, invoice itemization must comply with individual steamship line and BCO billing requirements. Some customers demand specific charge codes or narrative text; others require the original terminal receipt number be referenced. The TMS must therefore support configurable charge code mapping per customer or per lane.
Implementation Roadmap for Intermodal Operators
Carriers and brokers seeking to deploy an automated terminal toll and surcharge solver should follow a phased approach:
- Map all current terminals and rail ramps with accurate geospatial boundaries.
- Collect and normalize 12-24 months of historical gate transactions and accessorial invoices.
- Build and test the core tariff schedule and rules engine using the schema patterns described above.
- Integrate with existing Intermodal Drayage TMS modules and Brokerage / 3PL order entry systems.
- Deploy to a pilot customer segment and measure recovery rate improvement.
- Expand to full fleet while continuously monitoring exception rates.
Strong Tower Consulting, LLC has refined this roadmap across numerous intermodal and truckload operations since the company was founded in Minnesota in 2008.
Enterprise Systems Advisory
Ready to modernize your transportation management software, eliminate manual division spreadsheets, or optimize telematics and recruiting workflows? Contact Strong Tower Consulting for direct architect guidance.