About OTM Sending Hazmat Information to External Distance Engines

When you route an order between two locations, there can be restrictions related to the materials being transported. If the material is hazardous, then certain routes are restricted for the hazardous movement, because of which you need to take a different route. External distance engines like PC*Miler web services and HERE have the capability of routing the hazardous material based on the classification of the material being moved.

OTM sends hazmat information of an order to the External Distance Engine (EDE) and then calculates distance between two locations considering the hazmat routing configuration. The process of sending hazmat information to EDE is based on the following criteria:

  • Setting the Hazardous check box on the order release line or packaged item.
  • Creating a hazardous item for a hazardous classification which can vary by transport mode, region, and packaged item.
  • Mapping hazardous items to EDE.
  • Specifying the Hazmat Item on the order release line or configuring the RUN HAZMAT QUALIFICATION PROCESS parameter so that OTM looks up the hazardous item for the packaged item based on the transport mode and region.
  • Configuring the HAZMAT_ROUTING parameter in EDE.

This topic describes the process involved in configuring and sending hazardous material information to EDE using the OTM user interface to get the distance.

Configuration

You need to configure the following parameters and business objects as a pre-requisite:

  • Create a hazardous item.
    • Set the Hazardous check box based on the hazardous mode and the region.
      • The hazardous mode is an attribute of the itinerary and models the capability to comply with multi-leg and multi-modal regulations.
      • The region, which is based on the destination, also allows the compliance with regulations for cross border shipments.
    • The hazardous item must be related to a packaged item.
  • You can either specify a hazardous item on an order release line which gets populated automatically on the shipment ship unit line, or OTM will look up the appropriate hazardous item corresponding to the packaged item based on the transport mode and region.
  • Map the hazmat items to the corresponding hazmat types and EDE type using Hazmat External Distance Engine Mapping. This could vary based on the external distance engines. Currently, HERE and PC*Miler (ALK) available.
  • Create a parameter set and set the RUN HAZMAT QUALIFICATION PROCESS parameter to true.  

Note: Only when you set this parameter to true, OTM will look up the hazardous Item for the packaged item based on the transport mode, region, and populate it on the corresponding shipment ship unit line. You do not have to set this parameter, if the hazardous item is populated on the Order release Line. For more details on how OTM populates various hazardous material flags and fields on the shipment given different combinations of hazardous material information provided on the order, see Hazardous Material Settings and Implications.

  • Create HERE or PC*Miler web services external distance engines and set the HAZMAT_ROUTING parameter value as Y to consider hazardous item information and calculate hazmat routing distance.
  • Perform bulk planning on an order to create a shipment in which distance is to be calculated based on hazardous material being transported.

Process

This section will explain the process involved in sending the hazmat information to EDE thereby calculating the distance between two locations based on the hazmat routing.

Now let’s review the process in more detail along with examples.

Creating a Hazardous Item

For example, you need to create a hazardous item which you are sending from source location New Haven, CT to destination location Richmond, VA, and you want to avoid the Harbor Tunnel in Baltimore because hazmat is prohibited. You are shipping Calcium Carbide, which is dangerous when wet. So create a hazardous item for Calcium Carbide in a container specified on the packaged item for a specific mode of shipment and for the USA region.

The following fields are required (values are given as examples along with description) on the Hazardous Item page to classify the state of a hazardous item:

  • HazRegion ID - HAZREGION-USA (specifies the classification and description for shipping CALCIUM CARBIDE hazardous item for the designated mode (TL), in the USA according to DOT regulation).
  • Hazmat Generic ID - UN1402 (the UN1001 (UN number) is a 4-digit numbering system assigned to “CALCIUM CARBIDE” by the United Nations Committee of Experts for a quick identification of dangerous goods).
  • Mode - TL. (determines whether the material is hazardous when transported by air, rail, truck, or ocean).
  • 49 STCC ID -  the STCC number is a unique seven (7) digit code used to classify a commodity for the purpose of emergency response. This is not a commodity classification.
  • Packaged Item ID - the associated packaged item is a mandatory field as the hazardous attributes apply specifically to how the packaged item is packaged. For example, as bulk or in a container.

Enabling Hazmat Parameter

Configuring a parameter value enables OTM to perform specific business process according to your requirement.  

First, you must create a parameter set in your domain and set the RUN HAZMAT QUALIFICATION PROCESS parameter to true. For example, create CANS parameter set ID and assign it to your domain. In the CANS parameter set ID, set the RUN HAZMAT QUALIFICATION PROCESS parameter to True. If this parameter is set to true and no hazmat item is specified on order release line level, OTM will look up the hazmat item based on the packaged item,  transport mode, and region.

If the hazardous flag is selected on the order release line or the on the packaged Item, and no hazardous Item is found in the look up process, then a warning message appears and the shipment flag is set to hazardous as a fail-safe. For more details, see Hazardous Material Settings and Implications.

Configuring External Distance Engine

When you use hazmat routing between two locations and the hazmat items being transported between two locations can vary, you must disable the cache for the external distance engines.

To disable the in memory cache of the external distance engines, set the value of the property below:

glog.distance.noCache.extEngineJavaClass=glog.business.rate.ratedistance.external.PCMilerEngineWS,glog.business.rate.ratedistance.external.HereEngine

Also, in the EDE which you created, select Cache Off from the Cache Control Type drop-down list.

You can configure an existing external distance engine and set the HAZMAT_ROUTING parameter to Y, which enables OTM to send the hazmat information to EDE. For example, create the PCMILER_SHORTEST_HAZ_ROUTING external distance engine and set the HAZMAT_ROUTING parameter to Y. In this case, OTM will enable the PCMILER engine to consider the hazmat route instead of the default route to move your goods from source to destination locations and calculates the distance accordingly.

You must associate the EDE to a rate distance. For example, associate the PCMILER_SHORTEST_HAZ_ROUTING external distance engine to the PCMILER WS LAT LONG rate distance. Add this rate distance to your rate offering (TL-AMERICANFREIGHTER) so that OTM uses this rate offering information while performing a bulk plan on an order.

Mapping Hazmat Item to External Distance Engine Type

Use the Hazmat External Distance Engine Mapping page to send hazmat information of the order to External Distance Engines.

Map the hazmat items to the corresponding hazmat types based on the following external distance engine types:

  • ALK (PC*MILER Web Service)
  • HERE

To view hazmat types for PC*Miler, see https://maps.alk.com/PCMDoc/SharedMembers#RouteOptions.

The table below contains various PC*Miler hazmat types and description.

Mapping Value

Description

None

Indicates that there is no hazardous material.

General

Indicates general hazardous materials.

Caustic

Indicates caustic hazardous materials.

Explosives

Indicates explosive hazardous materials.

Flammable

Indicates flammable hazardous materials

Inhalants

Indicates that the hazardous materials are inhalants.

Radioactive

Indicates radioactive hazardous materials.

 

The following is a list of HERE hazmat types:

  • explosive
  • gas
  • flammable
  • combustible
  • organic
  • poison
  • radioActive
  • corrosive
  • poisonousInhalation
  • harmfulToWater
  • other

Calculating Shipment Distance

After you configure the parameter set and business objects mentioned above, OTM determines the hazmat items on the shipment based on the order configuration and settings in the RUN HAZMAT QUALIFICATION PROCESS parameter. OTM verifies whether there is a mapping between EDE Type and Hazmat Type. Based on the hazmat mapping, OTM verifies if there is an external distance engine available with the Hazmat_Routing parameter marked as Y.

For example, create the CANSWITCH.ALK-HAZMAT order release from New Haven to Richmond with the Hazmat item (Calcium Carbide) specified on the packaged item based on hazardous mode (TL) and destination region. When you bulk plan the CANSWITCH.ALK-HAZMAT order release, OTM allows you to select the CANS parameter set ID in which the RUN HAZMAT QUALIFICATION PROCESS parameter is set to True. OTM will look up the hazardous Item on the packaged item based on the transport mode and region, and populate it on the corresponding shipment ship unit line.

OTM then calculates the distance by hazmat routing between New Haven to Richmond by considering the hazmat routing of the order as it contains the Calcium Carbide hazmat item. To obtain this distance correctly, the Calcium Carbide hazmat item needs to be mapped to the appropriate hazmat type of the PCMILER_SHORTEST_HAZ_ROUTING external distance engine (with HAZMAT_ROUTING marked as Y)  which is provided in the rate distance associated to a rate offering by which a shipment is planned.

Related Topics