---
updatedAt: 2025-09-18T22:00:32.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# List Distance Targeting Geometries

## Why List Distance Targeting Geometries?

You may find it useful to occasionally review all distance targeting geometry objects associated with a flight to determine if you would like to make changes to the object being used for distance targeting. The Kevel API enables you to return a list of all distance targeting geometry objects associated with a specific flight. You simply need to make a `GET` request to the Distance Targeting Geometries API endpoint and include the `FlightID` and `distance` parameters.

The JSON response will include all distance targeting geometry objects for that flight.

## API Syntax

When using the List Distance Targeting Geometries API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`GET https://api.kevel.co/v1/flight/{FlightID}/distance`

Where:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `flight` - the API endpoint being called.
* `FlightID` - the ID associated with the flight.
* `distance` - the distance targeting geometry object that contains the `Distance`, `Latitude`, `Longitude`, and `StreetAddress` body parameters used for distance targeting.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/flight/{FlightID}/distance/": {
      "get": {
        "summary": "List Distance Targeting Geometries",
        "description": "",
        "operationId": "list-geodistance-targeting-geometries",
        "parameters": [
          {
            "name": "FlightID",
            "in": "path",
            "description": "The ID of the flight",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[\n  {\n    \"Id\": 12345,\n    \"Latitude\": 35.99505,\n    \"Longitude\": -78.90818,\n    \"StreetAddress\": \"kevel\",\n    \"FlightId\": 1234567,\n    \"Distance\": 10\n  },\n  {\n    \"Id\": 12346,\n    \"Latitude\": 35.99505,\n    \"Longitude\": -78.90818,\n    \"StreetAddress\": \"kevel uk\",\n    \"FlightId\": 1234567,\n    \"Distance\": 10\n  },\n  {\n    \"Id\": 12347,\n    \"Latitude\": 35.99505,\n    \"Longitude\": -78.90818,\n    \"StreetAddress\": \"kevel san francisco\",\n    \"FlightId\": 1234567,\n    \"Distance\": 10\n  }\n]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "Id": {
                        "type": "integer",
                        "example": 12345,
                        "default": 0
                      },
                      "Latitude": {
                        "type": "number",
                        "example": 35.99505,
                        "default": 0
                      },
                      "Longitude": {
                        "type": "number",
                        "example": -78.90818,
                        "default": 0
                      },
                      "StreetAddress": {
                        "type": "string",
                        "example": "kevel"
                      },
                      "FlightId": {
                        "type": "integer",
                        "example": 1234567,
                        "default": 0
                      },
                      "Distance": {
                        "type": "integer",
                        "example": 10,
                        "default": 0
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" https://api.kevel.co/v1/flight/12345/distance \n",
              "name": "cURL"
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function listDistanceTargeting() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications, logger});\n    \n  let distanceTargeting = await client.run(\"distanceTargeting\", \"list\", {\n    flightId: 12345\n  });\n    \n  console.log(distanceTargeting);\n}\nlistDistanceTargeting()"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef list_distance_targeting()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    pp client.distance_targetings.list(flight_id)\nend\nlist_distance_targeting()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```