Add Geofence Set
Contents
Please see the Sites feature in our Places API if you are looking for predefined geofences around warehouses, distribution centers, and many other important trucking facilities in North America.
This API allows you to create a geofence set.
POST /GeofenceSets
Parameters
Required parameters are marked with an asterisk.
Data Element | Description | Data Type | Value/Example |
---|---|---|---|
Name *
| The name of the geofence set |
string | |
Tag
| The tag can be used to group sets of geofences together |
string | |
ActiveState *
| Indicates whether or not CoPilot should honor geofences in this set |
integer | 0 = Off 1 = Warn 2 = Avoid |
Visible *
| Whether or not the geofences contained within this set are visible |
boolean | true/false |
BorderColor
| The RGB color of the geofences’ borders |
integer | 0 - 16777215 |
BorderAlpha
| The alpha transparency of the geofences’ borders |
integer | 0 - 255 |
BorderWidth
| The pixel width of the geofences’ borders |
integer | 0 - 10 |
FillColor
| The RGB fill color of the geofences |
integer | 0 - 16777215 |
FillAlpha
| The alpha transparency of the geofences’ fill |
integer | 0 - 255 |
StartTime
| The date/time when the geofences contained within this set become active. The time should be formatted according to the ISO 8601 Standard (YYYY-MM-DDTHH:MM:SSZ) |
date/time | |
EndTime
| The date/time when the geofences contained within this set will expire. The time should be formatted according to the ISO 8601 Standard (YYYY-MM-DDTHH:MM:SSZ) |
date/time |
Response
The return from this operation is the ID of your newly created Geofence Set.
Errors
Data Element | Description | Data Type | Value/Example |
---|---|---|---|
Type | Indicates whether the error is an exception or warning |
Enum | Warning Exception |
Code | Error code |
Enum | Please refer to Appendix for complete list |
LegacyErrorCode | The legacy error code with is an integer valued code that would have been returned in PC*Miler Web Services v25 and earlier. |
Int | |
Description | The detailed error description. |
string |