Using geofences

First available in TMW Operations 15.30

A geofence is a virtual border surrounding a geographic location. The latitude and longitude precisely define a location using the Global Positioning System (GPS).

Geofence overview

In TMW Operations and TotalMail, a geofence is a circular border surrounding a location identified by its latitude and longitude. With the location as the center of the geofence, a radius determines its size and circumference.

image1

Geofences assist in alerting dispatchers when a resource is near or at a stop location. Geofences tell the system when a truck is arriving, has arrived, or has departed a stop.

To use geofencing, a Mobile Communication Unit (MCU) capable of GPS tracking is placed in the truck. At regular intervals, the MCU sends the truck’s position to the system. The system compares the position of the truck with the geofence. If the truck is within the geofence, the system considers it to have crossed the geofence.

The MCU also allows communication between the driver and the dispatcher. It can send and receive information. Crossing a geofence triggers communications with the driver of the truck.

Three key pieces of data are required to determine when a truck crosses a geofence:

  • The latitude and longitude of the company or stop location

    Geofences create a virtual barrier that encircle a company or stop location. This virtual barrier covers a geographic area surrounding the company or stop location. Typically, this information is retrieved from your TMWSuite database.

  • The radius of the geofence relative to the latitude and longitude of a company or stop location

    The radius of a geofence determines how large the geographic area surrounding a company is.

  • The current latitude and longitude of the truck with regular continuous updates

    The system compares the latitude and longitude of a company or stop location with the current latitude and longitude of a truck. As that truck slips inside the geographic area bordered by the geofence, the truck crosses the geofence. Your MobileComm vendor provides the truck’s current location.

There are three standard types of geofences:

  • Arriving
    This geofence identifies when a truck is approaching a company or stop location. Typically, you set up these geofences with a larger radius. They trigger an alert or communication when a truck enters the geofence area.

  • Arrived
    This geofence identifies when a truck has arrived at a company or stop location. Typically, you set up these geofences with a smaller radius (closer to the location). They trigger an alert or communication when a truck enters the geofence area.

  • Departed
    This geofence identifies when a truck is leaving a company or stop location. Typically, you set up these geofences with a medium radius. They trigger an alert when a truck leaves the geofence area.

image2

Geofence prerequisites

Requirements will differ based on your setup and MobileComm vendor. These instructions are based on using TotalMail with TMW Operations, and working with an external MobileComm vendor’s system.

When using TMW Operations with TotalMail, you must:

  • Apply the required license to your database

  • Record latitude and longitude values in company profiles

  • Create profiles for tractors, drivers, and trailers in both TMW Operations and TotalMail.

    Note: You must link these profiles.

  • Enable geofences in tractor profiles

Geofences and their attributes can be set up in either TMW Operations or TotalMail:

  • To create geofences in TMW Operations, follow the steps in Setting up geofences.

  • To create geofences in TotalMail, follow the steps in
    Guide: TotalMail System Administration | Appendix: E. Geofences

Verify you have the required license

To use the geofencing feature, the GEOFENCE SUPPORT license must be applied to your database.

You can verify that the license is applied from within TMW Operations. Go to Help > About. In the About window, click More. A second window opens. It lists licenses in a table. Look for GEOFENCE SUPPORT in the Name column, and verify that the Value column is set to Y. Click Close in the windows.

If the GEOFENCE SUPPORT license is not listed, contact your Support Team.

Record latitude and longitude in company profiles

There are three ways you can update a company’s latitude and longitude:

  • Manually recording the latitude and longitude

  • Populating the latitude and longitude in individual profiles

If you are using ALK’s PCMiler, you can use the Populate Company Lat/Long feature. Using this feature, you can update longitude and latitude values for multiple companies at one time. For details, see:

Guide: TotalMail System Administration | Appendix: E. Geofences | Section: Populating latitude and longitude for multiple companies

Manually recording the latitude and longitude

You record a company’s latitude and longitude values in its company profile.

  1. Go to Tools > Profiles > Company Profile.
    The Company Profile window opens.

  2. Open or create a new company profile.

  3. Click the Stop Info/Routing tab.

  4. In the Geocoding section, enter the company’s latitude and longitude using the Lat and Long fields.

    image3

  5. Save the profile.

Populating latitude and longitude in individual profiles

You record a company’s latitude and longitude values in its company profile.

  1. Go to Tools > Profiles > Company Profile.
    The Company Profile window opens.

  2. Open or create a new company profile.

  3. Click the Stop Info/Routing tab.

  4. Click image4 Verify to have the system fill in the Lat and Long fields.

    image5

  5. Save the profile.

Enable geofences in tractor profiles

You enable geofences for trucks in their tractor profiles. To enable geofences, follow these steps:

  1. Go to Tools > Profiles > Tractor Profile.
    The Tractor Profile window opens.

  2. Open an existing tractor profile or create a new one.

  3. If needed, click the Information tab.

  4. In the Use Geo-fencing field, select the needed option.

    • Yes
      Use TMW Operations, TotalMail, and MobileComm vendor geofences.

    • No
      Do not use geofences.

    • AAD
      Use geofences set up in TotalMail, specifically for the MobileComm vendor AA&D. Use this option when interfacing with multiple MobileComm vendors and you want geofences set up in TotalMail to take precedence.

    • MobileComm
      Use geofences set up in the MobileComm vendor’s system. Use this option when interfacing with multiple MobileComm vendors and you want geofences set up in the MobileComm vendor’s system to take precedence.

    image6

    + Note: If the Use Geo-fencing field is blank, the default is No.

  5. Save the profile.

Verify trucks have profiles in TotalMail and TMW Operations

If profiles exist in TotalMail but not in TMW Operations, you can create the profiles in TMW Operations and link them to the TotalMail profiles. You link profiles in the TotalMail Configuration window.

To link profiles, follow these steps:

  1. Create the profiles in TMW Operations.

  2. In TotalMail Configuration, select the needed truck, driver, or trailer profile.

  3. Double-click on the profile.

  4. Enter the asset’s TMWSuite profile ID using the Dispatch System [Resource Type] ID field:

    • Type the ID.

    • Click image7 and select the correct TMWSuite ID from the list.

    image8

Setting up geofences

You can set up geofence parameters at four levels:

  • A system-wide geofence applies to all companies and events.

  • A company geofence applies to all events for a specific company.

  • An event code geofence applies to a specific event for all companies.

  • A company/event code geofence applies to a specific company and event code.

You can set up geofences in TMW Operations or TotalMail. Regardless of where you perform the setup, you can use any standard TMW event code as a geofence parameter. This table provides a list of those event codes.

TMW event codes
  • BBT: Begin Bobtail

  • BCST: Billable Customs

  • BMT: Begin Empty

  • CDRP: Chassis Drop

  • CHK: Check Call

  • CPUP: Chassis Pickup

  • CTR: Change Trailer(s)

  • DEP: Departure

  • DIV: Diversion

  • DLD: Driver Loaded

  • DLT: Drop Loaded Trailer

  • DMT: Drop Empty Trailer

  • DRL: Final Drop Loaded Trailer

  • DTW: Drop Trl for Wash

  • DUL: Driver Unloaded

  • EBT: End Bobtail

  • EMT: End Empty

  • EXC: Exchange

  • FUL: Fuel Stop

  • HCT: Chg Trl at Hook Loc

  • HLT: Hook Loaded Trailer

  • HMT: Hook Empty Trailer

  • HPL: Hook Preloaded Trl

  • IBBT: Billable BBT

  • IBMT: Billable BMT

  • IDLT: Billable Drop Loaded Trailer

  • IDMT: Billable Drop Empty Trailer

  • IEBT: Billable EBT

  • IEMT: Billable EMT

  • IHCT: Billable Hook Change Trailer

  • IHLT: Billable Hook Loaded Trailer

  • IHMT: Billable Hook Empty Trailer

  • INSERV: Placed In Service

  • IVR: Voice Call

  • LLD: Live Load

  • LUL: Live Unload

  • NBCST: Non-Billable Customs

  • NBS: Non Billable Stop

  • PLD: Pre Load

  • PUL: Post Unload

  • RTP: Route Point

  • SAP: Schedule Appt

  • SWPDRV: Swap Drivers

  • TRCBKD: Truck Breakdown

  • TRP: Track Point

  • ULC: Unload Complete

  • UNA: Unauthorized

  • WSH: Trailer Wash

  • XDE: Crossdock Drop Empty Trailer

  • XDL: Trnsfr Load XDL

  • XDT: Crossdock Drop Trailer

  • XDU: Trnsfr Unload XDU

  • XHE: Crossdock Hook Empty Trailer

  • XHT: Crossdock Hook Trailer

You can also set up geofences in your mobile communications vendor’s application instead of in TMW Operations or TotalMail. Contact your MobileComm vendor for instructions. To set up geofences in TotalMail, see:

Guide: TotalMail System Administrator | Appendix: E. Geofences | Section: Setting up geofences in TotalMail

You set up geofences using the Setup GeoFence Defaults window. To access it, go to Tools > Tools Maintenance > GeoFence Defaults.

image9

Only users with system administrator rights can create/edit geofences in TMW Operations. Other users can access the window to view existing geofences, but editing options are not functional for them.

The system chooses the most specific criteria when applying a geofence. Three default geofences are available, one each for the Arriving, Arrived, and Departed situations. They have the following values:

Company ID Event Code Type

UNKNOWN

ALL

Arriving

UNKNOWN

ALL

Arrived

UNKNOWN

ALL

Departed

The system applies these geofences when there are no geofences that specify a company ID or an event code.

If you want, you can change or delete the default geofences. You can also add additional default geofences.

  • You can create geofences for a specific event code.

    This example shows geofences for the Live Load event that apply to all companies. A separate geofence is set up for each geofence type.

    Company ID Event Code Type

    UNKNOWN

    LLD

    Arriving

    UNKNOWN

    LLD

    Arrived

    UNKNOWN

    LLD

    Departed

  • You can create geofences for a specific company.

    This example shows geofences for one company that apply to all event codes. A separate geofence is set up for each geofence type.

    Company ID Event Code Type

    SUPSHA

    ALL

    Arriving

    SUPSHA

    ALL

    Arrived

    SUPSHA

    ALL

    Departed

To enter a geofence record, follow these steps:

  1. Go to Tools > Tools Maintenance > GeoFence Defaults.
    The Setup GeoFence Defaults window opens.

    Note: Any existing geofence records not linked to a specific company show when you first open the window. This happens because the default value in the Company field is UNKNOWN and the default value in the Event field is ALL.

  2. To locate geofence records for a specific company and/or event:

    1. Use the Company and Event fields to select your search criteria.

    2. Click image10 Retrieve.
      The grid results are limited to your selected criteria

  3. To add a new record, do one of the following:

    • Click image11 Add to add a new record to the end of the list.

    • Click image12 Insert to add a new record above the currently selected one.

  4. Make entries directly in the grid to edit the geofence record. Basic geofence setup includes these columns:

    Field Definition

    Company ID

    If the geofence applies to a specific company, select the company code.

    Note: If the geofence applies to all companies, leave the field set to UNKNOWN.

    Event Code

    Select the event code to which the geofence applies.

    Notes:

    1. If a geofence applies to all trip events, select All - All Events.

    2. All standard TMWSuite event codes are available as options.

    Type

    Specify the situation to which the geofence applies. Options are:

    • Arriving

    • Arrived

    • Departed

    Note: Because geofences work together, you should create an Arriving, Arrived, and a Departed geofence for each company ID/ event code combination.

    For example, for the Begin Empty event code, you would create three geofences, where:

    Event Code = BMT and Type = Arriving

    Event Code = BMT and Type = Arrived

    Event Code = BMT and Type = Departed

    Radius

    Enter the size of the geofence.

    Notes:

    1. The Departed geofence should be larger than the Arrived radius. For example, the Arrived geofence could be .5 mile, and the Departed geofence 1.0 mile.

    2. To specify that no geofence will be used, enter -1.

    Radius UOM

    Specify whether the radius is measured in miles, kilometers, meters, yards, or feet.

  5. Click image13 Save.

    Note: If you enter a record in error and want to remove it, select its row and click image14 Delete Item.

    To select the record, click on its row number.

    image15

    The Delete Row message opens. It identifies the number of rows you selected for deletion. Click Yes to continue the deletion. Click No to cancel it.