---
title: "Retrieve spatial data for a rectangular geofence."
url: "https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getRectangleGeofenceSpatialData"
---

> Full API specification: https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2.md

# Retrieve spatial data for a rectangular geofence.

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

Operation ID: `getRectangleGeofenceSpatialData`

## Before you start Before you make your first API call, make sure you have the following: - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace. - You have the Client ID and Client Secret for your integration. - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken). > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy). ## Purpose 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.3
info:
  title: Verizon Connect API
  version: 1.0.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: |-
        ## Before you start

        Before you make your first API call, make sure you have the following:

        - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace.
        - You have the Client ID and Client Secret for your integration.
        - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken).

        > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy).

        ## Purpose

        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:
                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
                title: 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.
```
