In the GLEC Framework, hub operations cover emissions from logistics facilities — warehouses, cross-docking centers, distribution hubs, and cold storage facilities. These emissions are separate from transport and include energy consumption (electricity, heating) and operational processes.
Copy
┌──────────────────────────────────────────────────────────────────────────────┐│ HUB OPERATIONS IN GLEC │├──────────────────────────────────────────────────────────────────────────────┤│ ││ Owned Hubs (Scope 1 + 2) Subcontracted Hubs (Scope 3) ││ ────────────────────── ───────────────────────── ││ • Linked to a Facility • Uses HOC default intensity ││ • Scope 1: On-site fuel • All emissions → Scope 3 ││ combustion (heating, forklifts) • HOC intensity: kgCO2e/tonne ││ • Scope 2: Purchased electricity • Multiplied by tonnes handled ││ • Real energy data from invoices ││ ││ Hub Operation IV = Hub emissions (gCO2e) / Tonnes handled ││ │└──────────────────────────────────────────────────────────────────────────────┘
Hub Emission SourcesFor owned hubs, Dcycle uses actual energy data from linked facilities:
Scope 1: Direct fuel combustion (natural gas, diesel generators)
Scope 2: Purchased electricity and district heating
For subcontracted hubs, Dcycle uses HOC default intensity values (kgCO2e/tonne) based on the hub category.Hub CO2e = HOC intensity (kgCO2e/tonne) x Tonnes handled
Each hub is assigned a HOC (Hub Operation Category) that determines its default emission intensity:
Category
Description
Typical IV (kgCO2e/tonne)
transshipment_ambient
Ambient temp cross-docking/sorting
Low
transshipment_mixed
Mixed temp handling
Medium
transshipment_temperature_controlled
Refrigerated/frozen handling
High
cold_storage
Cold/frozen warehousing
Highest
warehouse_ambient
Ambient warehousing
Low
Choose the category that best matches your hub’s primary operation. Temperature-controlled facilities have significantly higher emission intensities due to refrigeration energy.
Owned hubs require a facility_idWhen creating an owned hub, you must provide a valid facility_id pointing to an existing Dcycle Facility. The Facility is where you upload energy invoices (electricity, gas, etc.) that provide actual Scope 1 and Scope 2 emission data for the hub.Create a Facility first via the Facilities API or the Dcycle web app.
Automatic recalculation: When you update a hub’s address, Dcycle automatically triggers a recalculation of all transport legs associated with that hub to update distances and emissions.
hub_id = "your-hub-uuid"response = requests.delete( f"https://api.dcycle.io/logistic_hubs/{hub_id}", headers=headers,)if response.status_code == 200: print("Hub deleted successfully")elif response.status_code == 409: print("Cannot delete: hub is referenced by transport legs or has invoices")
Deletion constraints: A hub cannot be deleted if it is referenced by any transport legs (hub_id in logistics requests) or if its linked facility has invoices. Remove references first, or archive the hub by updating its status instead.
When creating transport legs (Step 1), associate them with a hub using the hub_id field:
Copy
# Transport leg associated with a hubshipment = { "origin": "Madrid Distribution Center", "destination": "Barcelona, Spain", "toc": "artic_truck_diesel", "load": 15, "load_unit": "ton", "hub_id": "HUB-MAD-001", # Hub name or ID "client": "RETAILCO",}response = requests.post( "https://api.dcycle.io/v1/logistics/requests", headers=headers, json=shipment,).json()
This links the transport leg to the hub, allowing the GLEC report to aggregate transport activity by hub and include hub-level emissions in the company report.