Basic Information

Detailed Information

Report Data

The Geofence Datatype

The following datatype will be JSONified and returned for methods which retrieve Geofence values.

Polyfence zones return Points and leave Radius, Latitude and Longitude null. Radius zones return Radius (in meters), Latitude and Longitude, and leave Points null.

public class Geofence
{
publicUInt64GeofenceId; // A unique identifier for the Geofence, aka ZoneID or PolyfenceID. Use this when making further API calls specific to this Geofence, such as TimeInZoneByFenceReport. This is NOT an AlertId.
publicStringGeofenceName; // The name of this Geofence.
publicStringGeofenceType; // The Type of this Geofence. Polyfence or Radius.
publicDouble[][]Points; // (Polyfence Geofence only) This is a list of lat/long points that defines a polygonal geofence zone. Will be NULL for Radius Zones.
publicDouble?Radius; // (Radius Geofence only) This is the distance, in meters, from the center of a circular geofence. Will be NULL for Polyfence Zones.
publicDouble?Latitude; // (Radius Geofence only) The Latitude value of the center point. Will be NULL for Polyfence Zones.
publicDouble?Longitude; // (Radius Geofence only) The Longitude value of the center point. Will be NULL for Polyfence Zones.
publicStringZoneColor; // The color value of the Zone (as shown in Web Application)
}

The Geofence Methods

The following list provides a reference for all valid /Geofence HTTP requests.

  • GET v1/Geofence?account={account}

    Summary: Return USFT's information about all Geofences (Geofence/Radius zones) viewable by your Account. This is the Geofence-side counterpart to ZoneAlert. ZoneAlert lists zones that have an active Alert set up on them and identifies each by AlertId; this method lists the Geofences themselves and identifies each by GeofenceId, so zones with no Alert attached are included. Use the GeofenceId returned here with TimeInZoneByFenceReport.

    Returns: A list of all Geofences viewable by your Account

    Parameters:

    • account: (Optional) If this parameter is included, the method will be run on behalf of the specified child Account (if valid) (FromUri)