HUB represents a site where cargo is handled between transport operations, or a logistics facility at the start or end of a transport chain.
Hubs can contribute emissions from loading and unloading, moving cargo within the facility, and freight related energy use such as lighting, heating, and cooling.
Add hubs to a transport chain when you know the location where one requested leg ends and another begins.
TerraTwin can automatically insert hubs between the transport operations in a calculation, including first and last mile connections, as well as at stopover airports.
Transport boundary
HUB placed between two transport operations defines the end location of the incoming leg and the start location of the outgoing leg.Location
location.Use the same PLACE, AIRPORT, RAIL_YARD, or HARBOR locations used for origins and destinations.Hub type
hubType to select the kind of facility.If it is omitted, TerraTwin can select a default based on the surrounding transport modes and cargo category.Insertion options
options.hubInsertion to control automatic insertion.Use options.defaultHubTypes to change the default hub type for individual mode transitions.Basic shape
An explicit hub hastype: "HUB", a required location, and an optional hubType.
- The
WATERleg runs from the Port of London Gateway to the Port of Rotterdam. - The
HUBrepresents handling at the maritime terminal in Rotterdam. - The
RAILleg runs from the Port of Rotterdam to the Marzahn-Hellersdorf borough in Berlin.
Cargo transfer point at the Port of Rotterdam [NLRTM]
Properties
Hub types
ThehubType determines the emissions intensity applied to the cargo handled at the hub.
Transshipment
UseTRANSSHIPMENT for a straightforward cargo transfer with little or no storage.
Typical examples include moving cargo from one truck to another, from road to rail, or from a flight to a delivery vehicle.
Storage and transshipment
UseSTORAGE_AND_TRANSSHIPMENT when the facility has meaningful transfer and storage activity, but neither dominates the operation.
Warehouse
UseWAREHOUSE when storage, order fulfillment, packaging, or distribution is the main activity.
A warehouse is often modelled as the first or last hub in a chain.
Liquid bulk terminal
UseLIQUID_BULK_TERMINAL for liquid cargo handled at tank farms, and specialized rail, road, or maritime facilities.
Maritime terminal
UseMARITIME_TERMINAL when a harbor handles cargo moving to or from a vessel.
This is the normal default for transitions involving WATER, except where liquid cargo - in which case LIQUID_BULK_TERMINAL is the default.
No hub emissions
UseNONE when the location must remain as a transport operation boundary but no cargo-handling emissions should be applied.
For example, the location may represent an operational stop where the cargo remains on the same vehicle.
Hubs at the origin and destination
A logistics hub can be the first or last operation in a transport chain. Add an endpointHUB when the origin or destination represents an actual hub operation that you want to model,
such as handling at a warehouse, terminal, or distribution centre.
Do not add a HUB solely because the transport chain has an origin or destination.
For most calculations, the top-level origin and destination define the transport boundaries without adding hub emissions at those locations.
An endpoint hub may be appropriate when the transport service specifically includes activity at a warehouse, terminal, distribution centre, or another logistics facility.
When the first chain item is a hub, its location replaces the top-level origin as the start boundary. When the last chain item is a hub, its location replaces the top-level destination as the end boundary.
Origin and destination hubs at UPS Worldport and a nearby UPS Healthcare warehouse in Louisville
hubType explicitly for start and end hubs. Unlike an intermediate hub, an endpoint hub does not have both an incoming and outgoing transport mode from which a transition default can be selected.Automatic hub insertion
By default, TerraTwin inserts logistics hub operations between consecutive transport operations in the calculated route. This includes connector operations that TerraTwin adds within a requested leg. For air transport, TerraTwin may generate additional flight segments when the aircraft’s range requires a stopover. A transshipment hub is automatically inserted at each stopover airport. For example, consider cargo traveling from postcode654-0161 in Kobe to postcode 15008 in Lima, Peru.
The cargo travels by road to Kobe Airport before continuing by air.
TerraTwin divides the air transport into two flight segments, with a stopover at Tijuana International Airport (TIJ), and inserts hub operations at the departure, stopover, and arrival airports.
Road to Kobe Airport
654-0161 in Kobe to Kobe Airport [UKB].ROAD transport to departure airport
Kobe Airport hub
Flight to Tijuana
UKB] to Tijuana International Airport [TIJ].AIR transport to stopover airport
Tijuana stopover hub
TIJ] between the arriving and departing flight segments.Flight to Lima
TIJ] to Lima’s Jorge Chávez International Airport [LIM].AIR transport from stopover airport
Lima airport hub
Road to the destination
LIM] to postcode 15008 in Lima.ROAD transport from arrival airport
Control automatic hub insertion
Useoptions.hubInsertion to control whether TerraTwin inserts hub operations automatically.
MANUAL when you want to define every emissions-generating hub yourself:
- TerraTwin does not insert hubs automatically between transport operations, including first-mile and last-mile road connections or flight segments separated by a stopover.
- An explicit hub with a specified
hubTypestill contributes hub emissions. - An explicit hub without a
hubTyperemains a location boundary, but does not contribute hub emissions.
Hub type defaults
Useoptions.defaultHubTypes to set the hub type for each incoming and outgoing mode combination when no hubType is specified. These defaults also apply to hubs that TerraTwin inserts automatically.
Each property name follows the pattern <incomingMode>To<outgoingMode>.
hubType on the hub takes precedence over defaultHubTypes.
Supported mode transitions
Disable hub emissions by transition
Set any transition toNONE to exclude hub emissions for that incoming and outgoing mode combination.
AIR to AIR transitions while leaving automatic insertion enabled for all other transitions. Use this when an aircraft stops only to refuel and the cargo remains on board.
Override a built-in default
Use any supported hub type as a transition default when your operating model differs from the built-in assumptions.Weighted modes transitions
For aWEIGHTED_MODES operation, TerraTwin evaluates the possible incoming and outgoing child mode combinations.
It determines a default hub type for each combination, then uses the hub type with the highest emissions intensity.
Use an explicit hubType when the actual facility type is known and should not depend on the weighted alternatives.
How a hub type is selected
For a hub between two transport operations, TerraTwin applies the following precedence:Use the explicit hub type
HUB element contains hubType, TerraTwin uses that value.Check manual insertion
hubType is omitted and options.hubInsertion is MANUAL, no hub emissions are applied.Use a configured transition default
options.defaultHubTypes contains the matching incoming-to-outgoing mode property, TerraTwin uses that value.Use the built-in default
STORAGE_AND_TRANSSHIPMENT and WAREHOUSE are not selected by the built-in transition rules. Supply them explicitly on the hub or configure them through defaultHubTypes when they represent the real facility.Hub locations
A hublocation uses the same schema as a top-level origin or destination.
Choose the location type that best represents the facility.
General facility
PLACE for warehouses, distribution centers, depots, and other sites identified by coordinates, address, postcode, or city.Airport
AIRPORT for airport cargo terminals.
Provide an iataCode when the airport is known.Rail facility
RAIL_YARD for rail terminals and network connection points.
Identify a specific facility with coordinates or address information.Harbor
HARBOR for maritime and liquid bulk terminals at ports.
Provide a unLoCode when the harbor is known.location.type and hubType describe different things.
For example, a hub may use location.type: "HARBOR" to select the Port of Rotterdam and hubType: "LIQUID_BULK_TERMINAL" to select the facility activity and emissions intensity within that harbor.
Recommendations
Use explicit hubs for known transfer locations
HUB between requested transport operations whenever you know where the cargo changes vehicle, mode, provider, or handling process.Specify the actual facility type
hubType explicitly when the site is a warehouse, mixed storage facility, liquid bulk terminal, or another known category that differs from the built-in transition default.Use transition overrides narrowly
defaultHubTypes properties that differ from TerraTwin’s built-in defaults. Use NONE only for transitions where no qualifying handling emissions occur.Type endpoint hubs explicitly
hubType. TerraTwin does not assign a default hub type to endpoint hubs.