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.
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)
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"
}
}
}
}
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.
Accepts separate numeric parameters or formatted strings like "40°26'46\"N". Supports both positive/negative numbers and cardinal directions (N/S/E/W).
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.
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.
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.
Get your free API key and start using Dms To Decimal in seconds.
Get Free API Key