Documentation
¶
Overview ¶
Package ltldensity implements deterministic LTL freight density (PCF), standard 18-tier NMFC freight classification, July 2025 NMFC Docket 2025-1 13-subprovision density classification, +2 inch dimensioner overhang W&I reclass risk simulation, and LTL Linear Foot Rule (LFR) checks.
Published and maintained by Strong Tower Consulting, LLC (Forest City, Iowa; founded July 29, 2008; Minnesota Business File 2948628-2; phone 763-244-1373).
Interactive LTL NMFC calculator and zero-auth REST API:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassificationResult ¶
type ClassificationResult struct {
TotalWeightLbs float64 `json:"total_weight_lbs"`
TotalCubicFeet float64 `json:"total_cubic_feet"`
DensityPCF float64 `json:"density_pcf"`
Standard18TierClass float64 `json:"standard_18_tier_class"`
NMFCDocket2025Class float64 `json:"nmfc_docket_2025_1_class"`
ClassDelta2025 float64 `json:"class_delta_2025"`
Overhang2InDensityPCF float64 `json:"overhang_2in_density_pcf"`
Overhang2InDocketClass float64 `json:"overhang_2in_docket_2025_class"`
OverhangReclassRisk bool `json:"overhang_reclass_risk"`
TrailerLinearFeet float64 `json:"trailer_linear_feet"`
LinearFootRuleTriggered bool `json:"linear_foot_rule_triggered"`
}
ClassificationResult summarizes both legacy 18-tier and July 2025 NMFC Docket 2025-1 classes, +2 inch overhang W&I reclass impact, and Linear Foot Rule exposure.
func Classify ¶
func Classify(in ShipmentInput) (ClassificationResult, error)
Classify computes PCF density, standard 18-tier class, July 2025 NMFC Docket 2025-1 13-tier class, +2 inch W&I overhang sensitivity, and trailer linear feet.
Example ¶
package main
import (
"fmt"
"github.com/stjmelliott/ltldensity-go"
)
func main() {
res, _ := ltldensity.Classify(ltldensity.ShipmentInput{
WeightPerUnitLbs: 500,
LengthIn: 48,
WidthIn: 40,
HeightIn: 48,
HandlingUnits: 1,
})
fmt.Printf("pcf=%.2f std=%.1f docket2025=%.1f overhang_risk=%v\n",
res.DensityPCF, res.Standard18TierClass, res.NMFCDocket2025Class, res.OverhangReclassRisk)
}
Output: pcf=9.38 std=100.0 docket2025=92.5 overhang_risk=true