Skip to main content
Glama
chrishayuk

chuk-mcp-geocoder

by chrishayuk

distance_matrix

Calculate distances between multiple geographic points using the haversine formula. Accepts latitude/longitude coordinates or named location objects to generate a distance matrix in meters without external API calls.

Instructions

Compute haversine distance matrix between multiple points.

Pure computation — no API calls needed. Accepts points as either [lat, lon] pairs or {"name": ..., "lat": ..., "lon": ...} objects. Args: points: JSON array of points. Each point is either: - [lat, lon] pair (auto-named "Point 1", "Point 2", ...) - {"name": "Label", "lat": 40.0, "lon": -105.0} output_mode: "json" (default) or "text" Returns: NxN distance matrix in metres between all point pairs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointsYes
output_modeNojson

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/chrishayuk/chuk-mcp-geocoder'

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