---
url: "https://developers.vzconnect.com/apis/geofence-api-1/versions/97ac0c29-6cea-4076-8841-35f03eedbd6c"
---

OpenAPI specification document.

```json
{"openapi":"3.0.0","info":{"title":"Geofence API","description":"The Geofence REST Service is included within the REVEAL Geospatial API suite. Integrated customers and partners can leverage this API to create, update, and delete Geofences within a REVEAL account.\n\nThis API will use the following unique identifier(s): PlaceID. Standard REST verbs are applied: GET, POST, PUT, DELETE.","version":"1.0","x-vzc-portal":{"category":"Fleet Organization","summary":"Create, update, retrieve, and delete circular or rectangular virtual boundaries for locations in Reveal.","business":{"description":"allows organizations to create, update, retrieve, and delete circular or rectangular virtual boundaries for locations in Reveal. The API helps maintain up-to-date geofence records to support location-based fleet management, operational workflows, and business system integrations.","purpose":"The Geofence API helps your organization manage virtual boundaries around important locations in Reveal.\n\nThis supports location-based fleet operations by keeping geofence information available to the business systems and workflows that use it.\n\nYou can retrieve geofence details, including the radius of a circular geofence or the dimensions of a rectangular geofence.\n\nYou can also create new geofences, update their locations, and delete geofences that are no longer needed."},"use-cases":[{"title":"Boundary Management","description":"Maintain an accurate set of virtual boundaries across your account for customer sites, job locations, depots, and restricted zones."},{"title":"Spatial & Dimension Mapping","description":"Use circle radius and rectangle dimension details to support precise location-based operational views, mapping applications, and geofenced reporting."},{"title":"Lifecycle Synchronization","description":"Keep geofence records current by programmatically creating, updating, and deleting boundaries in sync with changes in back-office ERP or CRM systems."},{"title":"Automated Dispatch & Arrival Triggers","description":"Feed geofence coordinates into external event-driven architectures to automate arrival/departure timestamps, customer ETA notifications, and site entry alerts."}],"icon-svg-base64":"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NSIgaGVpZ2h0PSI3NSIgdmlld0JveD0iMCAwIDc1IDc1IiBmaWxsPSJub25lIj4NCjx0aXRsZT5JY29uPC90aXRsZT4NCjxwYXRoIGQ9Ik05IDBoMXYxaC0xek02NSAwaDJ2MWgtMnpNNSAxaDl2MWgtOXpN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wMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjU2MSIvPg0KPHBhdGggZD0iTTQ2IDIyaDF2MWgtMXpNMTcgMjNoMXYxaC0xek0yOSAyM2gxdjFoLTF6TTQ1IDIzaDF2MWgtMXpNNTcgMjNoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjE4OCIvPg0KPHBhdGggZD0iTTYwIDFoMXYxaC0xek0zNCAyOGgxdjFoLTF6TTQwIDI4aDF2MWgtMXpNNDAgNDZoMXYxaC0xeiIgZmlsbD0iIzAwMDAwMCIgZmlsbC1vcGFjaXR5PSIwLjQzNSIvPg0KPHBhdGggZD0iTTU2IDZoMXYxaC0xek01NiAyNGgxdjFoLTF6TTYwIDU3aDF2MWgtMXoiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMC4zMTQiLz4NCjxwYXRoIGQ9Ik0xOCA4aDF2MWgtMXpNMTggMTBoMXYxaC0xek00NiAzOWgxdjFoLTF6IiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuNjkiLz4NCjwvc3ZnPg0K"}},"tags":[{"name":"Geofence API","description":"Operations for creating, retrieving, updating, and deleting circular and rectangular geofences within a REVEAL account, including their spatial data."}],"x-kong-plugin-pre-function":{"enabled":true,"config":{"access":["local uri = kong.request.get_path()\nlocal new_uri = uri:gsub('^/geo/v1', '/gsm/v1')\nkong.service.request.set_path(new_uri)","local CLAIM = \"reveal_account_id\"\nlocal SEP   = \"_\"\nngx.req.clear_header(\"apikey\")\nlocal auth = kong.request.get_header(\"authorization\")\nif not auth then return end\nlocal app_id = auth:match(\"[Aa]tmosphere_app_id%s*=%s*([^,%s]+)\")\nif not app_id then return end\napp_id = app_id:match('^\"(.*)\"$') or app_id:match(\"^'(.*)'$\") or app_id\nlocal token = auth:match(\"[Bb]earer%s+([^%s,]+)\")\nlocal payload = token and token:match(\"^[^.]+%.([^.]+)%.\")\nif not payload then return end\npayload = payload:gsub(\"-\", \"+\"):gsub(\"_\", \"/\")\npayload = payload .. string.rep(\"=\", (4 - #payload % 4) % 4)\nlocal json = ngx.decode_base64(payload)\nif not json then return end\nlocal account_id = json:match('\"' .. CLAIM .. '\"%s*:%s*\"?([^\",}%s]+)')\nif not account_id then return end\nngx.req.set_header(\"apikey\", app_id .. SEP .. account_id)"]}},"paths":{"/geo/v1/geofences":{"get":{"summary":"Retrieve geofences by category or group.","description":"Retrieve Geofence data by Category Name or Group ID. Provide exactly one of categoryName and groupId. Categories and Group management reside within REVEAL and are provided as additional query parameters. Category names must be presented exactly as they are saved within REVEAL.","operationId":"getGeofences","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/?$"]},"parameters":[{"name":"categoryName","in":"query","required":false,"description":"The name of the Category to retrieve Geofences for. Must match exactly as saved within REVEAL.","schema":{"type":"string","example":"REST Test"}},{"name":"groupId","in":"query","required":false,"description":"The Group ID to retrieve assigned Geofences for.","schema":{"type":"string","example":"22325"}}],"responses":{"200":{"description":"Successfully retrieved the list of geofences.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceCollection"},"example":{"Count":1,"_embedded":{"places":[{"place":{"GeoShapeType":"GeoRectangle","PlaceId":"JC123","GeoFenceName":"Jennifer","CategoryName":"REST Test","Address":{"AddressLine1":"2510 E Ridgewood Dr","AddressLine2":"","Locality":"Seven Hills","AdministrativeArea":"OH","PostalCode":"44131","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true,"Note":"JC Rest Stop","PhoneNumber":"216-522-2855","Latitude":41.391756,"Longitude":-81.670929}}]}}}}},"204":{"description":"No geofences found matching the criteria.","content":{"application/json":{}}},"400":{"description":"Bad request.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid."},"404":{"description":"Category or group not found, or neither categoryName nor groupId was supplied.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}}},"/geo/v1/geofences/circles":{"post":{"summary":"Create a circular geofence.","description":"Create a circular 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.","operationId":"createCircleGeofence","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/circles/?$"]},"requestBody":{"description":"Circle geofence details including center coordinates and radius.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CircleGeofenceRequest"},"example":{"RadiusInKm":2,"PlaceId":"123459","GeoFenceName":"Garage 203","Address":{"AddressLine1":"3613 West 120 Street","Locality":"Cleveland","AdministrativeArea":"Oh","PostalCode":"44111","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true}}},"required":true},"responses":{"201":{"description":"Circular geofence successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CircleGeofenceRequest"},"example":{"RadiusInKm":2,"PlaceId":"123459","GeoFenceName":"Garage 203","Address":{"AddressLine1":"3613 West 120 Street","Locality":"Cleveland","AdministrativeArea":"Oh","PostalCode":"44111","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true}}}},"400":{"description":"Bad request. The request body is invalid.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}}},"/geo/v1/geofences/circles/{placeid}":{"put":{"summary":"Update a circular geofence.","description":"Edit an existing circular 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.","operationId":"updateCircleGeofence","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/circles/[^/]+/?$"]},"parameters":[{"name":"placeid","in":"path","required":true,"description":"The PlaceID that uniquely identifies the Geofence within the REVEAL account.","schema":{"type":"string","example":"123459"}}],"requestBody":{"description":"Updated circle geofence details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CircleGeofenceRequest"},"example":{"RadiusInKm":2,"PlaceId":"123459","GeoFenceName":"Garage 203","Address":{"AddressLine1":"3613 West 120 Street","Locality":"Cleveland","AdministrativeArea":"Oh","PostalCode":"44111","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true}}},"required":true},"responses":{"200":{"description":"Circular geofence successfully updated."},"400":{"description":"Bad request. The request body is invalid."},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid."},"404":{"description":"Geofence not found with the specified PlaceID."},"500":{"description":"The service was unavailable at the time the call was made."}}}},"/geo/v1/geofences/circles/{placeid}/spatialdata":{"get":{"summary":"Retrieve spatial data for a circular geofence.","description":"Retrieve the granular spatial data for a circular Geofence identified by its PlaceID.","operationId":"getCircleGeofenceSpatialData","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/circles/[^/]+/spatialdata/?$"]},"parameters":[{"name":"placeid","in":"path","required":true,"description":"The PlaceID that uniquely identifies the circular Geofence within the REVEAL account.","schema":{"type":"string","example":"369852"}}],"responses":{"200":{"description":"Successfully retrieved spatial data for the circular geofence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CircleSpatialData"},"example":{"ShapeType":"Circle","Latitude":41.396927,"Longitude":-81.455925,"RadiusInKm":0.27561}}}},"400":{"description":"Bad request. The geofence exists but is not a circle."},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid."},"404":{"description":"Geofence not found with the specified PlaceID."}}}},"/geo/v1/geofences/rectangles":{"post":{"summary":"Create a rectangular geofence.","description":"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.","operationId":"createRectangleGeofence","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/rectangles/?$"]},"requestBody":{"description":"Rectangle geofence details including corner coordinates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectangleGeofenceRequest"},"example":{"LengthInKm":1,"WidthInKm":1,"PlaceId":"996788","GeoFenceName":"Revtangle","CategoryName":"UnCategorized","Address":{"AddressLine1":"4556 South Drive","Locality":"Seven Hills","AdministrativeArea":"Oh","PostalCode":"44131","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true}}},"required":true},"responses":{"201":{"description":"Rectangular geofence successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectangleGeofenceRequest"},"example":{"LengthInKm":1,"WidthInKm":1,"PlaceId":"996788","GeoFenceName":"Revtangle","CategoryName":"UnCategorized","Address":{"AddressLine1":"4556 South Drive","Locality":"Seven Hills","AdministrativeArea":"Oh","PostalCode":"44131","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true}}}},"400":{"description":"Bad request. The request body is invalid.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}}},"/geo/v1/geofences/rectangles/{placeid}":{"put":{"summary":"Update a rectangular geofence.","description":"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.","operationId":"updateRectangleGeofence","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/rectangles/[^/]+/?$"]},"parameters":[{"name":"placeid","in":"path","required":true,"description":"The PlaceID that uniquely identifies the Geofence within the REVEAL account.","schema":{"type":"string","example":"996788"}}],"requestBody":{"description":"Updated rectangle geofence details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectangleGeofenceRequest"},"example":{"LengthInKm":1,"WidthInKm":1,"PlaceId":"996788","GeoFenceName":"Revtangle","CategoryName":"UnCategorized","Address":{"AddressLine1":"4556 South Drive","Locality":"Seven Hills","AdministrativeArea":"Oh","PostalCode":"44131","Country":"USA"},"IsShownOnMap":true,"IsShownOnReport":true}}},"required":true},"responses":{"200":{"description":"Rectangular geofence successfully updated."},"400":{"description":"Bad request. The request body is invalid."},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid."},"404":{"description":"Geofence not found with the specified PlaceID."},"500":{"description":"The service was unavailable at the time the call was made."}}}},"/geo/v1/geofences/rectangles/{placeid}/spatialdata":{"get":{"summary":"Retrieve spatial data for a rectangular geofence.","description":"Retrieve the granular spatial data for a rectangular Geofence identified by its PlaceID.","operationId":"getRectangleGeofenceSpatialData","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/rectangles/[^/]+/spatialdata/?$"]},"parameters":[{"name":"placeid","in":"path","required":true,"description":"The PlaceID that uniquely identifies the rectangular Geofence within the REVEAL account.","schema":{"type":"string","example":"369852"}}],"responses":{"200":{"description":"Successfully retrieved spatial data for the rectangular geofence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RectangleSpatialData"},"example":{"ShapeType":"Rectangle","Latitude":53.389422,"LengthInKm":0.3130492799997731,"Longitude":-2.925248,"WidthInKm":0.40642887541418127}}}},"400":{"description":"Bad request. The geofence exists but is not a rectangle."},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid."},"404":{"description":"Geofence not found with the specified PlaceID."}}}},"/geo/v1/geofences/{placeid}":{"get":{"summary":"Retrieve a specific geofence by PlaceID.","description":"Retrieve details regarding a specific Geofence identified by its PlaceID.","operationId":"getGeofenceById","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/[^/]+/?$"]},"parameters":[{"name":"placeid","in":"path","required":true,"description":"The PlaceID that uniquely identifies the Geofence within the REVEAL account.","schema":{"type":"string","example":"369852"}}],"responses":{"200":{"description":"Successfully retrieved the geofence details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceByIdResponse"},"example":{"geofence":{"GeoShapeType":"GeoRectangle","PlaceId":"369852","GeoFenceName":"Restaurant","CategoryName":"UnCategorized","Address":{},"IsShownOnMap":true,"IsShownOnReport":true,"Latitude":53.389422,"Longitude":-2.925248}}}}},"400":{"description":"Bad request.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid."},"404":{"description":"Geofence not found with the specified PlaceID.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}},"delete":{"summary":"Delete a geofence.","description":"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.","operationId":"deleteGeofence","tags":["Geofence API"],"x-kong-route-defaults":{"strip_path":false,"paths":["~/geo/v1/geofences/[^/]+/?$"]},"parameters":[{"name":"placeid","in":"path","required":true,"description":"The PlaceID that uniquely identifies the Geofence within the REVEAL account.","schema":{"type":"string","example":"369852"}}],"responses":{"204":{"description":"Geofence successfully deleted.","content":{"application/json":{}}},"400":{"description":"Bad request.","content":{"application/json":{}}},"401":{"description":"Unauthorized. Authentication credentials are missing or invalid.","content":{"application/json":{}}},"404":{"description":"Geofence not found with the specified PlaceID.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}}}}},"components":{"schemas":{"GeofenceCollection":{"type":"object","description":"A list of Geofences assigned to the provided Category Name and/or Group ID.","properties":{"Count":{"type":"integer","description":"The total number of Geofence locations assigned to the provided Category Name and/or Group ID.","example":1},"_links":{"type":"object","properties":{"self":{"$ref":"#/components/schemas/Link"}}},"_embedded":{"type":"object","properties":{"places":{"type":"array","items":{"$ref":"#/components/schemas/PlaceEntry"}}}}}},"RectangleGeofenceRequest":{"type":"object","description":"Content data provided when creating or editing a rectangular Geofence.","properties":{"LengthInKm":{"type":"number","format":"double","description":"The length of the rectangular Geofence in kilometers.","example":1},"WidthInKm":{"type":"number","format":"double","description":"The width of the rectangular Geofence in kilometers.","example":1},"PlaceId":{"type":"string","description":"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"},"GeoFenceName":{"type":"string","description":"The name of the Geofence.","example":"Revtangle"},"CategoryName":{"type":"string","description":"The name of the Category. Must already exist within REVEAL and match exactly, otherwise an error is returned.","example":"UnCategorized"},"Address":{"$ref":"#/components/schemas/Address"},"Latitude":{"type":"number","format":"double","description":"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},"Longitude":{"type":"number","format":"double","description":"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},"EmailAddress":{"type":"string","description":"An email address that can be associated with the saved Geofence.","example":"depot@example.com"},"Note":{"type":"string","description":"A free form text space for users to provide additional details about the Geofence location.","example":"Main depot"},"PhoneNumber":{"type":"string","description":"A Phone Number that can be associated with the saved Geofence.","example":"216-522-2855"},"IsShownOnMap":{"type":"boolean","description":"Denotes if the Geofence can be displayed on the Map.","default":true,"example":true},"IsShownOnReport":{"type":"boolean","description":"Denotes if the Geofence can be displayed on Reports.","default":true,"example":true}}},"CircleSpatialData":{"type":"object","description":"Granular spatial data for a circular Geofence.","properties":{"ShapeType":{"type":"string","description":"Circle, Rectangle, or Polygon.","example":"Circle"},"Latitude":{"type":"number","format":"double","example":41.396927},"Longitude":{"type":"number","format":"double","example":-81.455925},"RadiusInKm":{"type":"number","format":"double","description":"The designated radius in kilometers used to create the circular Geofence referenced.","example":0.27561}}},"Link":{"type":"object","properties":{"href":{"type":"string"}}},"RectangleSpatialData":{"type":"object","description":"Granular spatial data for a rectangular Geofence.","properties":{"ShapeType":{"type":"string","description":"Circle, Rectangle, or Polygon.","example":"Rectangle"},"Latitude":{"type":"number","format":"double","example":53.389422},"LengthInKm":{"type":"number","format":"double","description":"The length of the rectangular Geofence in kilometers.","example":0.3130492799997731},"Longitude":{"type":"number","format":"double","example":-2.925248},"WidthInKm":{"type":"number","format":"double","description":"The width of the rectangular Geofence in kilometers.","example":0.40642887541418127}}},"GeofenceByIdResponse":{"type":"object","description":"The details of a specific Geofence retrieved by Place ID.","properties":{"geofence":{"type":"object","properties":{"GeoShapeType":{"type":"string","description":"Circle, Rectangle, or Polygon.","enum":["GeoRectangle","GeoCircle","GeoPolygon"],"example":"GeoRectangle"},"PlaceId":{"type":"string","nullable":true,"description":"A unique value within a REVEAL account used to identify a Geofence. The Place ID is a mandatory field to use the Geospatial API, but can be NULL for a returned Geofence.","example":"369852"},"GeoFenceName":{"type":"string","description":"The name of the Geofence.","example":"Restaurant"},"CategoryName":{"type":"string","description":"The name of the Category.","example":"UnCategorized"},"Address":{"$ref":"#/components/schemas/Address"},"IsShownOnMap":{"type":"boolean","default":true,"example":true},"IsShownOnReport":{"type":"boolean","default":true,"example":true},"EmailAddress":{"type":"string","description":"An email address that can be associated with the saved Geofence.","example":"depot@example.com"},"Note":{"type":"string","description":"A free form text space for users to provide additional details about the Geofence location.","example":"Main depot"},"PhoneNumber":{"type":"string","description":"A Phone Number that can be associated with the saved Geofence.","example":"216-522-2855"},"Latitude":{"type":"number","format":"double","example":53.389422},"Longitude":{"type":"number","format":"double","example":-2.925248}}},"_links":{"type":"object","properties":{"self":{"$ref":"#/components/schemas/Link"},"spatialdata":{"$ref":"#/components/schemas/Link"}}}}},"CircleGeofenceRequest":{"type":"object","description":"Content data provided when creating or editing a circular Geofence.","properties":{"RadiusInKm":{"type":"number","format":"double","description":"The radius in kilometers used to create the circular Geofence.","example":2},"PlaceId":{"type":"string","description":"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":"123459"},"GeoFenceName":{"type":"string","description":"The name of the Geofence.","example":"Garage 203"},"CategoryName":{"type":"string","description":"The name of the Category. Must already exist within REVEAL and match exactly, otherwise an error is returned.","example":"UnCategorized"},"Address":{"$ref":"#/components/schemas/Address"},"Latitude":{"type":"number","format":"double","description":"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},"Longitude":{"type":"number","format":"double","description":"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},"EmailAddress":{"type":"string","description":"An email address that can be associated with the saved Geofence.","example":"depot@example.com"},"Note":{"type":"string","description":"A free form text space for users to provide additional details about the Geofence location.","example":"Main depot"},"PhoneNumber":{"type":"string","description":"A Phone Number that can be associated with the saved Geofence.","example":"216-522-2855"},"IsShownOnMap":{"type":"boolean","description":"Denotes if the Geofence can be displayed on the Map.","default":true,"example":true},"IsShownOnReport":{"type":"boolean","description":"Denotes if the Geofence can be displayed on Reports.","default":true,"example":true}}},"PlaceEntry":{"type":"object","properties":{"place":{"$ref":"#/components/schemas/Place"},"_links":{"type":"object","properties":{"self":{"$ref":"#/components/schemas/Link"},"spatialdata":{"$ref":"#/components/schemas/Link"}}}}},"Address":{"type":"object","description":"Address contains the global standards for address components.","properties":{"AddressLine1":{"type":"string","description":"Location specific identification such as a house number.","example":"2510 E Ridgewood Dr"},"AddressLine2":{"type":"string","description":"Additional information to identify location such as an apartment number.","example":""},"Locality":{"type":"string","description":"City, town, etc.","example":"Seven Hills"},"AdministrativeArea":{"type":"string","description":"State, province, etc.","example":"OH"},"PostalCode":{"type":"string","description":"Postal code.","example":"44131"},"Country":{"type":"string","description":"Country.","example":"USA"}}},"Place":{"type":"object","description":"A Geofence assigned to the queried Category or Group, displayed as a Place object with specific details.","properties":{"GeoShapeType":{"type":"string","description":"The shape type the Geofence is saved as.","enum":["GeoRectangle","GeoCircle","GeoPolygon"],"example":"GeoRectangle"},"PlaceId":{"type":"string","nullable":true,"description":"A unique value within a REVEAL account used to identify a Geofence. The Place ID is a mandatory field to use the Geospatial API, but can be NULL for a returned Geofence.","example":"JC123"},"GeoFenceName":{"type":"string","description":"The name of the Geofence.","example":"Jennifer"},"CategoryName":{"type":"string","description":"The name of the Category.","example":"REST Test"},"Address":{"$ref":"#/components/schemas/Address"},"IsShownOnMap":{"type":"boolean","description":"Denotes if the Geofence can be displayed on the Map.","default":true,"example":true},"IsShownOnReport":{"type":"boolean","description":"Denotes if the Geofence can be displayed on Reports.","default":true,"example":true},"EmailAddress":{"type":"string","description":"An email address that can be associated with the saved Geofence.","example":"depot@example.com"},"Note":{"type":"string","nullable":true,"description":"A free form text space for users to provide additional details about the Geofence location.","example":"JC Rest Stop"},"PhoneNumber":{"type":"string","nullable":true,"description":"A Phone Number that can be associated with the saved Geofence.","example":"216-522-2855"},"Latitude":{"type":"number","format":"double","example":41.391756},"Longitude":{"type":"number","format":"double","example":-81.670929}}}}},"servers":[{"url":"https://api.us.vzconnect.com"}]}
```
