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

> Full API specification: https://developers.vzconnect.com/apis/geofence-api-1/versions/97ac0c29-6cea-4076-8841-35f03eedbd6c.md

# GeofenceByIdResponse

The details of a specific Geofence retrieved by Place ID.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Geofence API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    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
    Link:
      type: object
      properties:
        href:
          type: string
    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"
```
