decimal_to_dms

Pack: geodistance · Endpoint: https://gateway.pipeworx.io/geodistance/mcp

Convert decimal lat/lon to degrees-minutes-seconds strings.

Parameters

NameTypeRequiredDescription
latnumberyesLatitude (decimal degrees).
lonnumberyesLongitude (decimal degrees).

Example call

Arguments

{
  "lat": 40.7128,
  "lon": -74.006
}

curl

curl -X POST https://gateway.pipeworx.io/geodistance/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"decimal_to_dms","arguments":{"lat":40.7128,"lon":-74.006}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('decimal_to_dms', {
  "lat": 40.7128,
  "lon": -74.006
});

More examples

{
  "lat": 51.5074,
  "lon": -0.1278
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "geodistance": {
      "url": "https://gateway.pipeworx.io/geodistance/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026