18 Create and Detect Geofence Violations

A geofence is a virtual geographic boundary defined by Global Positioning System (GPS) coordinates that restricts a fleet vehicle to a specific, real-world geographic area. When a vehicle enters or leaves the geofence boundary, its current position is sent from the vehicle's sensor device to the Oracle IoT Fleet Monitoring Cloud Service instance. A rule created in the instance detects the position changes and notifies the administrator and users.

To detect fleet vehicles moving outside of its designated geofence, you can create rules that would generate alerts and notify you immediately. This can help you recover stolen vehicles quickly, improve fuel management, reduce liability, and identify unexpected route deviations.

A geofence also lets you monitor and prevent unauthorized after hours use of your fleet vehicles. Rules help you generate alerts that notify you when a vehicle departs from a garage's geofence and arrives at a customer location's geofence. This can help you determine the average time spent traveling to and from the departure location.

Create a New Geofence

Create a geofence to define a geographic area for a fleet asset of an organization.

Note:

If you are using HERE maps, then you can create geofences not only in the standard map view, but also in the satellite image view of your location.
  1. Click Menu (Menu icon), click Design Center and then, click Geofences (Geofence icon).
  2. On the Geofences page, click Create Geofence (Create Geofence icon).
  3. If you are using HERE maps and you want to create geofences using satellite imagery, then in the map area, click Map Layers (Map layers icon), and then select the Satellite option.
  4. On the Create Geofence page, enter or select the following values:
    • Name: Enter the name of the geofence

    • Tags: Optionally, enter tag values to make it easier to locate and identify the geofence

    • Geofence Type: Select Polygonal or Circular based on the type of boundary area you want to fence.

  5. Use Search Geofence (Search Geofence icon). to enter or select the specific address of the area you wish to fence
    The address or the region appears highlighted on the map.
  6. Click the Zoom in (Zoom in icon) icon to zoom in to a map location, or click the Zoom out (Zoom out icon) icon to zoom out from a map location to narrow down to the location where you want to create a geofence. Alternatively, you can enter the Latitude and Longitude values to directly zoom in to the location where you want to create the geofence.
  7. For the polygonal geofence type, draw it on the map:
    1. Click and hold the left mouse button to move the map.
    2. Click the Draw (Draw icon) icon to draw the permitted area for the geofence.
    3. Click the left mouse button on the map to add a polygon and to start drawing the permitted location boundary.
    4. Click the left mouse button and drag it to a new location and the release the left mouse button.
    5. Continue drawing the permitted location boundary until all the polygons are joined as displayed in the image.
    Polygonal Geofence Example
  8. For a circular geofence, enter the Radius value in miles and select the area on the map:
    1. Click and hold the left mouse button to move the map.
    2. Click the Draw (Draw icon) icon and then double click the desired location of the geofence, on the map.
    3. You can optionally modify the Latitude and Longitude values that are populated when you click the area on the map.
    4. You can increase or decrease the Radius value of the circular geofence.
    Circular Geofence Example
  9. Click Save.
  10. Click Back to return to the Geofences page.
  11. Assign the geofence to a vehicle location rule. See Create a Rule.

Show or Hide Geofences in the Map View

Show a geofence in the map view to quickly view the geofences in the current map view. Hide geofences in the map view to reduce the information displayed in the current map view.

You can show or hide geofences in the Fleet Map view or the Trip or Shipment Map view from the Operation Center of your current organization. In addition, you can view the geofence name by hovering the mouse over a given geofence in the map view.

Note:

The Shipment business object will be deprecated in a future release. Hence it is recommended to use Trips for real-time monitoring of in-transit movements.
  1. From the Operation Center click Fleet Map (Fleet Map icon) or click Shipment Map (Shipment Map icon)
  2. Click Map Layers (Map Layers icon) that appears below the Zoom Out icon.
  3. Select one of these options:
    • Select the Geofences checkbox to show geofences in the current map view.
    • Clear the Geofences checkbox to hide geofences in the current map view.

Enable Route Geofencing

Enable route geofencing to receive rule based notifications when a vehicle moves beyond the route corridor width and when the route deviation tolerance value is met or exceeded. You enable this setting at the organization level and it applies to all the geofences that you've created in that organization.

  1. Click Menu Menu iconand then click Design Center.
  2. Click Organization and then Settings Settings icon .
  3. Click Enable Route Geofencing in the Route Geofence Settings area.
  4. (Optional) Edit these settings:
    • Route Corridor Width: Enter a value to define the width of the trip corridor in miles or kilometers. When a vehicle moves beyond the corridor value, a notification is sent to the Fleet Administrator.
    • Route Deviation Tolerance: Enter a value to define the number of times a vehicle can deviate from a defined trip route. When the vehicle meets or exceeds the defined value, a notification is sent to the Fleet Administrator.

Set the Route Corridor Width Value

When route geofencing is enabled, the route corridor width defines the width of the trip corridor in miles. The larger the value, the greater the allowable deviation. When a vehicle moves beyond the corridor value, a geofence violation occurs which can be tracked by a rule that can then send a notification to the administrator.

  1. Click Menu Menu iconand then click Design Center.
  2. Click Organization and then Settings Settings icon .
  3. In the Route Geofence Settings area, enter the width of the trip corridor in miles in the Route Corridor Width field.

Set Route Deviation Tolerance Value

When route geofencing is enabled, the route deviation tolerance defines the number of times a vehicle can deviate from a defined trip route. The higher the value, the more times a vehicle can deviate from a planned route. When a vehicle meets or exceeds the deviation tolerance value, a geofence violation occurs which can be tracked by a rule that can then send a notification to the administrator.

  1. Click Menu Menu iconand then click Design Center.
  2. Click Organization and then Settings Settings icon .
  3. In the Route Geofence Settings area, enter a value in the Route Deviation Tolerance field to define the number of times a vehicle can deviate from a defined trip route.