---
title: "Get Alternates"
method: POST
path: "/collections/alternates"
tags: ["Alternates"]
---

# Get Alternates

`POST /collections/alternates`

## Request

- Base URL: `https://api.planet.com/features/v1/ogc/my`
- URL: `https://api.planet.com/features/v1/ogc/my/collections/alternates`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
- TypeScript: <https://skmtc.dev/planet/apis/planet-features-api/docs/collections/alternates/post.ts> (a function with typed inputs; its response is checked against the schema)

generate alternate geometries for features with vertex count that exceeds the vertex limit or may be invalid (e.g via de-duping, simpplification, bbox, convex hull, etc)

## Request body

- FeatureGeoJSON
  - `type` 'Feature', required
  - `geometry` union, required
    - PointGeoJSON
      - `type` 'Point', required
      - `coordinates` number[], required
    - MultipointGeoJSON
      - `type` 'MultiPoint', required
      - `coordinates` array[], required
        - number[]
    - LinestringGeoJSON
      - `type` 'LineString', required
      - `coordinates` array[], required
        - number[]
    - MultilinestringGeoJSON
      - `type` 'MultiLineString', required
      - `coordinates` array[], required
        - array[]
          - number[]
    - PolygonGeoJSON
      - `type` 'Polygon', required
      - `coordinates` array[], required
        - array[]
          - number[]
    - MultipolygonGeoJSON
      - `type` 'MultiPolygon', required
      - `coordinates` array[], required
        - array[]
          - array[]
            - number[]
    - GeometrycollectionGeoJSON
      - `type` 'GeometryCollection', required
      - `geometries` GeometryGeoJSON[], required
  - `properties` object, nullable, required
  - `id` union
    - string
    - integer
  - `links` Link[]
    - `href` string, required
    - `rel` string
    - `type` string
    - `hreflang` string
    - `title` string
    - `length` integer

## Response `200`

The response is a document consisting of features in the collection.
The features included in the response are determined by the server
based on the query parameters of the request. To support access to
larger collections without overloading the client, the API supports
paged access with links to the next page, if more features are selected
that the page size.

The `bbox` and `datetime` parameter can be used to select only a
subset of the features in the collection (the features that are in the
bounding box or time interval). The `bbox` parameter matches all features
in the collection that are not associated with a location, too. The
`datetime` parameter matches all features in the collection that are
not associated with a time stamp or interval, too.

The `limit` parameter may be used to control the subset of the
selected features that should be returned in the response, the page size.
Each page may include information about the number of selected and
returned features (`numberMatched` and `numberReturned`) as well as
links to support paging (link relation `next`).

- FeatureCollectionGeoJSON
  - `type` 'FeatureCollection', required
  - `features` FeatureGeoJSON[], required
    - `type` 'Feature', required
    - `geometry` union, required
      - PointGeoJSON
        - `type` 'Point', required
        - `coordinates` number[], required
      - MultipointGeoJSON
        - `type` 'MultiPoint', required
        - `coordinates` array[], required
          - number[]
      - LinestringGeoJSON
        - `type` 'LineString', required
        - `coordinates` array[], required
          - number[]
      - MultilinestringGeoJSON
        - `type` 'MultiLineString', required
        - `coordinates` array[], required
          - array[]
            - number[]
      - PolygonGeoJSON
        - `type` 'Polygon', required
        - `coordinates` array[], required
          - array[]
            - number[]
      - MultipolygonGeoJSON
        - `type` 'MultiPolygon', required
        - `coordinates` array[], required
          - array[]
            - array[]
              - …
      - GeometrycollectionGeoJSON
        - `type` 'GeometryCollection', required
        - `geometries` GeometryGeoJSON[], required
    - `properties` object, nullable, required
    - `id` union
      - string
      - integer
    - `links` Link[]
      - `href` string, required
      - `rel` string
      - `type` string
      - `hreflang` string
      - `title` string
      - `length` integer
  - `links` Link[]
    - `href` string, required
    - `rel` string
    - `type` string
    - `hreflang` string
    - `title` string
    - `length` integer
  - `timeStamp` string, date-time: This property indicates the time and date when the response was generated.
  - `numberMatched` integer: The number of features of the feature type that match the selection parameters like `bbox`.
  - `numberReturned` integer: The number of features in the feature collection. A server may omit this information in a response, if the information about the number of features is not known or difficult to compute. If the value is provided, the value shall be identical to the number of items in the "features" array.

---

[API](https://skmtc.dev/planet/apis/planet-features-api.md) - [All operations](https://skmtc.dev/planet/apis/planet-features-api/llms.txt) - [OpenAPI document](https://skmtc.dev/planet/apis/planet-features-api/revisions/5a7c6f310684?raw)
