Create a rectangular geofence.
Create a rectangular Geofence within REVEAL. If only an Address is provided, the Geofence is created referencing that address. If only coordinates are provided, it is created referencing the latitude and longitude (an error is returned if either latitude or longitude is missing). If both address and coordinates are provided, the coordinate values are used. All Geofences created with POST are assigned to the ENTIRE FLEET group; use the Customer Meta Data Group API to change group assignment. A Category Name may be supplied but must already exist within REVEAL and match exactly, otherwise an error is returned.
Body
application/json
Body
Rectangle geofence details including corner coordinates.
RectangleGeofenceRequest
Content data provided when creating or editing a rectangular Geofence.
The length of the rectangular Geofence in kilometers.
Example:1
The width of the rectangular Geofence in kilometers.
Example:1
A unique value within a REVEAL account used to identify a Geofence. The Place ID is a mandatory field to use the Geospatial API.
Example:996788
The name of the Geofence.
Example:Revtangle
The name of the Category. Must already exist within REVEAL and match exactly, otherwise an error is returned.
Example:UnCategorized
Address contains the global standards for address components.
Show Child Parameters
The latitude of the center point of the Geofence. Provide it together with Longitude. If both coordinates and an Address are provided, the coordinates are used.
Example:41.391756
The longitude of the center point of the Geofence. Provide it together with Latitude. If both coordinates and an Address are provided, the coordinates are used.
Example:-81.670929
An email address that can be associated with the saved Geofence.
Example:depot@example.com
A free form text space for users to provide additional details about the Geofence location.
Example:Main depot
A Phone Number that can be associated with the saved Geofence.
Example:216-522-2855
Denotes if the Geofence can be displayed on the Map.
Default:true
Example:true
Denotes if the Geofence can be displayed on Reports.
Default:true
Example:true
Response
application/json
Response
Rectangular geofence successfully created.
RectangleGeofenceRequest
Content data provided when creating or editing a rectangular Geofence.
The length of the rectangular Geofence in kilometers.
Example:1
The width of the rectangular Geofence in kilometers.
Example:1
A unique value within a REVEAL account used to identify a Geofence. The Place ID is a mandatory field to use the Geospatial API.
Example:996788
The name of the Geofence.
Example:Revtangle
The name of the Category. Must already exist within REVEAL and match exactly, otherwise an error is returned.
Example:UnCategorized
Address contains the global standards for address components.
Show Child Parameters
The latitude of the center point of the Geofence. Provide it together with Longitude. If both coordinates and an Address are provided, the coordinates are used.
Example:41.391756
The longitude of the center point of the Geofence. Provide it together with Latitude. If both coordinates and an Address are provided, the coordinates are used.
Example:-81.670929
An email address that can be associated with the saved Geofence.
Example:depot@example.com
A free form text space for users to provide additional details about the Geofence location.
Example:Main depot
A Phone Number that can be associated with the saved Geofence.
Example:216-522-2855
Denotes if the Geofence can be displayed on the Map.
Default:true
Example:true
Denotes if the Geofence can be displayed on Reports.
Default:true
Example:true
Update a rectangular geofence.
Edit an existing rectangular Geofence within REVEAL. If only an Address is provided, the address is referenced. If only coordinates are provided, the latitude and longitude are referenced (an error is returned if either is missing). If both are provided, the coordinate values are used. A Category Name may be supplied but must already exist within REVEAL and match exactly, otherwise an error is returned. PUT methods do not return an object review; the response is limited to standard HTTP codes. The PlaceID in the path identifies the Geofence.
Path Parameters
The PlaceID that uniquely identifies the Geofence within the REVEAL account.
Example:996788
Body
application/json
Body
Updated rectangle geofence details.
RectangleGeofenceRequest
Content data provided when creating or editing a rectangular Geofence.
The length of the rectangular Geofence in kilometers.
Example:1
The width of the rectangular Geofence in kilometers.
Example:1
A unique value within a REVEAL account used to identify a Geofence. The Place ID is a mandatory field to use the Geospatial API.
Example:996788
The name of the Geofence.
Example:Revtangle
The name of the Category. Must already exist within REVEAL and match exactly, otherwise an error is returned.
Example:UnCategorized
Address contains the global standards for address components.
Show Child Parameters
The latitude of the center point of the Geofence. Provide it together with Longitude. If both coordinates and an Address are provided, the coordinates are used.
Example:41.391756
The longitude of the center point of the Geofence. Provide it together with Latitude. If both coordinates and an Address are provided, the coordinates are used.
Example:-81.670929
An email address that can be associated with the saved Geofence.
Example:depot@example.com
A free form text space for users to provide additional details about the Geofence location.
Example:Main depot
A Phone Number that can be associated with the saved Geofence.
Example:216-522-2855
Denotes if the Geofence can be displayed on the Map.
Default:true
Example:true
Denotes if the Geofence can be displayed on Reports.
Default:true
Example:true
Response
Response
Rectangular geofence successfully updated.
Retrieve spatial data for a rectangular geofence.
Retrieve the granular spatial data for a rectangular Geofence identified by its PlaceID.
Path Parameters
The PlaceID that uniquely identifies the rectangular Geofence within the REVEAL account.
Example:369852
Response
application/json
Response
Successfully retrieved spatial data for the rectangular geofence.
RectangleSpatialData
Granular spatial data for a rectangular Geofence.
Circle, Rectangle, or Polygon.
Example:Rectangle
Example:53.389422
The length of the rectangular Geofence in kilometers.
Example:0.3130492799997731
Example:-2.925248
The width of the rectangular Geofence in kilometers.
Example:0.40642887541418127
Retrieve a specific geofence by PlaceID.
Retrieve details regarding a specific Geofence identified by its PlaceID.
Path Parameters
The PlaceID that uniquely identifies the Geofence within the REVEAL account.
Example:369852
Response
application/json
Response
Successfully retrieved the geofence details.
GeofenceByIdResponse
The details of a specific Geofence retrieved by Place ID.
Show Child Parameters
Show Child Parameters
Delete a geofence.
Delete any Geofence shape type from a REVEAL account. The DELETE Geofence method does not return an object review; the response is limited to standard HTTP codes.
Path Parameters
The PlaceID that uniquely identifies the Geofence within the REVEAL account.
Example:369852
Response
application/json
Response
Geofence successfully deleted.