---
title: "Retrieve spatial data for a rectangular geofence."
url: "https://developers.vzconnect.com/apis/geofence-api-1/versions/97ac0c29-6cea-4076-8841-35f03eedbd6c/operations/getRectangleGeofenceSpatialData"
---

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

# Retrieve spatial data for a rectangular geofence.

`GET` `/geo/v1/geofences/rectangles/{placeid}/spatialdata`

Operation ID: `getRectangleGeofenceSpatialData`

Retrieve the granular spatial data for a rectangular Geofence identified by its PlaceID.

## Path parameters

- `placeid` (string, required) - The PlaceID that uniquely identifies the rectangular Geofence within the REVEAL account.

## Responses

- `200` - Successfully retrieved spatial data for the rectangular geofence.
- `400` - Bad request. The geofence exists but is not a rectangle.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `404` - Geofence not found with the specified PlaceID.

## OpenAPI definition

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