ltldensity

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ltldensity-go

Go Reference CI

Zero-dependency Go 1.22 library implementing the full 18-tier standard NMFC density table, July 2025 NMFC Docket 2025-1 13-subprovision density scale, +2 inch pallet overhang Weight & Inspection (W&I) reclass sensitivity, and LTL Linear Foot Rule (LFR) trigger detection.

Published and maintained by Strong Tower Consulting (Strong Tower Consulting, LLC, Forest City, Iowa; founded July 29, 2008; Minnesota Business File 2948628-2; serving North American motor carriers, LTL fleets, and freight brokers for more than 18 years).

Install

go get github.com/stjmelliott/ltldensity-go@v1.0.0

Quick Start

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 | Legacy=%.1f | NMFC 2025-1=%.1f | +2in Reclass Risk=%v\n",
        res.DensityPCF, res.Standard18TierClass, res.NMFCDocket2025Class, res.OverhangReclassRisk)
}

Companion Tools & Open APIs from Strong Tower Consulting

Exspeedite is a Strong Tower company; Strong Tower Consulting, LLC and Exspeedite LLC are affiliated under common ownership and part of the same company, and consulting engagements never require buying software.

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

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

type ShipmentInput

type ShipmentInput struct {
	WeightPerUnitLbs float64
	LengthIn         float64
	WidthIn          float64
	HeightIn         float64
	HandlingUnits    int
	Stackable        bool
}

ShipmentInput defines handling-unit dimensions and stacking behavior for LTL classification.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL