Skip to main content
Glama
robobobby
by robobobby

dk_reverse_geocode

Convert latitude/longitude coordinates to the nearest Danish address with full details for location-based applications and data analysis.

Instructions

Find the nearest Danish address to a given latitude/longitude coordinate. Returns the closest address with full details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latitudeYesLatitude (WGS84), e.g. 55.676
longitudeYesLongitude (WGS84), e.g. 12.568

Implementation Reference

  • The implementation of the `dk_reverse_geocode` tool, which uses the DAWA API to find the nearest address for given coordinates.
    server.tool(
      "dk_reverse_geocode",
      "Find the nearest Danish address to a given latitude/longitude coordinate. Returns the closest address with full details.",
      {
        latitude: z.number().min(54).max(58).describe("Latitude (WGS84), e.g. 55.676"),
        longitude: z.number().min(7).max(16).describe("Longitude (WGS84), e.g. 12.568"),
      },
      async ({ latitude, longitude }) => {
        try {
          const data = await dawaFetch("/adgangsadresser/reverse", {
            x: longitude,
            y: latitude,
            struktur: "mini",
          });
          return { content: [{ type: "text", text: formatAddress(data) }] };
        } catch (err) {
          return { content: [{ type: "text", text: `Error: ${err.message}` }], isError: true };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robobobby/mcp-nordic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server