Geography
Convert coordinates and Google Plus Codes in both directions, including short-code recovery and refinement precision.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/open-location-code-plus-codes-encoder-decoder' \
-H 'Content-Type: application/json' \
-d '{"operation":"encode","latitude":37.4219999,"longitude":-122.0840575,"plusCode":"e.g. 849VCWC8+R9 or CWC8+R9","referenceLatitude":0,"referenceLongitude":0,"precision":"11"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/open-location-code-plus-codes-encoder-decoder| Name | Type | Required | Description |
|---|---|---|---|
| operation | select | Yes | — |
| latitude | number | No | — |
| longitude | number | No | — |
| plusCode | text | No | — |
| referenceLatitude | number | No | — |
| referenceLongitude |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-open-location-code-plus-codes-encoder-decoder": {
"name": "open-location-code-plus-codes-encoder-decoder",
"description": "Convert coordinates and Google Plus Codes in both directions, including short-code recovery and refinement precision.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=open-location-code-plus-codes-encoder-decoder",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "open-location-code-plus-codes-encoder-decoder",
"arguments": {
"operation": "encode",
"latitude": 37.4219999,
"longitude": -122.0840575,
"plusCode": "e.g. 849VCWC8+R9 or CWC8+R9",
"referenceLatitude": 0,
"referenceLongitude": 0,
"precision": "11"
}
}
}| number |
| No |
| — |
| precision | select | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]