Geolocation Utilities

Destination Point

Calculate precise destination coordinates from a starting point, compass bearing, and distance using spherical earth geometry. Access via MCP in Cursor or Windsurf, or call GET /v1/geo/destination with lat, lng, bearing (degrees), and distance (meters). Returns exact latitude/longitude coordinates — no GPS drift or approximation errors that plague manual calculations.

API Endpoint

GET /v1/geo/destination

Code Examples

curl "https://tinyfn.io/v1/geo/destination" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/geo/destination', {
  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/destination',
    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 calculate a destination point from GPS coordinates and bearing?

Pass starting latitude, longitude, bearing in degrees (0-360), and distance in meters to GET /v1/geo/destination. Returns precise destination coordinates using great circle calculations.

What bearing format does the destination point calculation use?

Uses true bearing in degrees where 0° is north, 90° is east, 180° is south, 270° is west. Standard compass notation, not mathematical angles.

Can MCP agents use destination point calculations for route planning?

Yes, MCP tools in Claude Code or Cline can chain destination calculations to plot multi-waypoint routes or calculate search patterns around points of interest.

How accurate are destination point calculations over long distances?

Uses spherical earth model accurate to within meters for distances under 1000km. For intercontinental distances, consider earth's oblate shape affects precision.

What's the difference between destination point and simple coordinate math?

Destination point uses great circle geometry accounting for earth's curvature. Simple lat/lng addition fails badly — 1km east varies dramatically by latitude.

Try Destination Point Now

Get your free API key and start using Destination Point in seconds.

Get Free API Key