Skip to content
Eden Engine

Portugal Administrative Area at a Coordinate: District, Municipality, Parish (DGT CAOP)

dgtportugal/admin-area-at-point

Which district, municipality or parish of mainland Portugal contains a latitude and longitude: its official code, name, NUTS regions, area and perimeter, from the Direção-Geral do Território's CAOP 2025 administrative map. Pick the level (distritos, municipios or freguesias) and give a latitude (36.9 to 42.2) and longitude (-9.6 to -6.1). Mainland only: the Azores and Madeira are not covered. A point in the sea or outside Portugal returns an empty feature list; a point on a shared boundary can return up to three. Boundaries are never returned (geometry is null). DGT data under CC BY 4.0, passed through unmodified and served by Eden Engine; not an official DGT product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.

Data source

Direção-Geral do Território (DGT)

Fonte: Direção-Geral do Território (DGT), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Official administrative map of Portugal (CAOP 2025), mainland only, boundaries not returned. Served by Eden Engine; not an official DGT product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "dgtportugal/admin-area-at-point" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "dgtportugal/admin-area-at-point" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "dgtportugal/admin-area-at-point", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "dgtportugal/admin-area-at-point", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 20, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "level",
    "latitude",
    "longitude"
  ],
  "properties": {
    "level": {
      "enum": [
        "distritos",
        "municipios",
        "freguesias"
      ],
      "type": "string",
      "description": "Which administrative level to look up: distritos (18 districts), municipios (278 municipalities) or freguesias (parishes)."
    },
    "latitude": {
      "type": "number",
      "maximum": 42.2,
      "minimum": 36.9,
      "description": "Latitude in decimal degrees (WGS84), mainland Portugal only, for example 38.72 (Lisbon)."
    },
    "longitude": {
      "type": "number",
      "maximum": -6.1,
      "minimum": -9.6,
      "description": "Longitude in decimal degrees (WGS84), mainland Portugal only, for example -9.14 (Lisbon)."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "features"
  ],
  "properties": {
    "type": {
      "type": "string"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "OGC API links (self, alternate formats, collection)."
    },
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The official code of the area."
          },
          "type": {
            "type": "string"
          },
          "geometry": {
            "description": "Always null: geometry is not requested."
          },
          "properties": {
            "type": "object",
            "properties": {
              "dt": {
                "type": "string",
                "description": "District code (distritos)."
              },
              "dtmn": {
                "type": "string",
                "description": "Municipality code, district digits then municipality digits (municipios)."
              },
              "nuts1": {
                "type": "string"
              },
              "nuts2": {
                "type": "string"
              },
              "nuts3": {
                "type": "string"
              },
              "dtmnfr": {
                "type": "string",
                "description": "Parish code (freguesias)."
              },
              "area_ha": {
                "type": "number",
                "description": "Area in hectares."
              },
              "distrito": {
                "type": "string"
              },
              "freguesia": {
                "type": "string"
              },
              "municipio": {
                "type": "string"
              },
              "nuts3_cod": {
                "type": "string"
              },
              "perimetro_km": {
                "type": "number",
                "description": "Perimeter in kilometres."
              },
              "distrito_ilha": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "description": "The matching areas. Empty when the point is outside the area the map covers."
    },
    "timeStamp": {
      "type": "string"
    },
    "numberMatched": {
      "type": "number"
    },
    "numberReturned": {
      "type": "number"
    }
  },
  "description": "An OGC API Features collection of the administrative areas at the point, without geometry.",
  "additionalProperties": true
}