Geolocation Utilities

Dms To Decimal

Converts DMS coordinates (degrees, minutes, seconds) to decimal degrees for GPS systems and mapping APIs. Access via MCP in Cursor or Windsurf, or REST at `/v1/geo/dms-to-decimal`. Input `40°26'46"N` returns `40.44611`. Essential for transforming traditional surveying data into modern geospatial formats that work with Google Maps and GIS tools.

API Endpoint

GET /v1/geo/dms-to-decimal

Code Examples

curl "https://tinyfn.io/v1/geo/dms-to-decimal" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/geo/dms-to-decimal', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/geo/dms-to-decimal',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's geolocation tools:

{
  "mcpServers": {
    "tinyfn-geo": {
      "url": "https://tinyfn.io/mcp/geo",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I convert DMS coordinates to decimal degrees?

Send degrees, minutes, seconds, and direction (N/S/E/W) to the endpoint. Formula: decimal = degrees + (minutes/60) + (seconds/3600), then negate for South/West directions.

What format does the DMS to decimal converter accept?

Accepts separate numeric parameters or formatted strings like "40°26'46\"N". Supports both positive/negative numbers and cardinal directions (N/S/E/W).

Can MCP agents use this for processing GPS coordinates?

Yes, AI agents in Cursor and other MCP-enabled editors can automatically convert DMS coordinates from documents, surveys, or user input into decimal format for mapping APIs.

Why convert DMS to decimal degrees?

Most modern GPS devices, mapping APIs (Google Maps, OpenStreetMap), and GIS software use decimal degrees. DMS is common in navigation, surveying, and older coordinate systems.

Does the converter handle negative coordinates correctly?

Yes, it properly converts both cardinal directions (S/W become negative) and direct negative input. Maintains precision to 6+ decimal places for sub-meter accuracy.

Try Dms To Decimal Now

Get your free API key and start using Dms To Decimal in seconds.

Get Free API Key