Skip to main content
Glama

OpenStreetMap MCP Server

get_route_directions

Calculate turn-by-turn directions between two locations using car, bike, or foot as transportation modes. Provides route details, including distance, duration, and geometry, for trip planning or navigation assistance.

Instructions

Calculate detailed route directions between two geographic points.

This tool provides comprehensive turn-by-turn navigation directions between any two locations on Earth. It calculates the optimal route based on the specified transportation mode and returns detailed information about distance, duration, maneuvers, and the route geometry. Perfect for trip planning, navigation assistance, and commute analysis.

Args: from_latitude: Starting point latitude (decimal degrees) from_longitude: Starting point longitude (decimal degrees) to_latitude: Destination latitude (decimal degrees) to_longitude: Destination longitude (decimal degrees) mode: Transportation mode - options include: - "car" (default): Standard automobile routing - "bike": Bicycle-friendly routes - "foot": Pedestrian walking paths

Returns: Comprehensive routing information including: - Summary with total distance (meters) and duration (seconds) - Turn-by-turn directions with individual segments - Route geometry for mapping visualization - Waypoint information

Input Schema

NameRequiredDescriptionDefault
from_latitudeYes
from_longitudeYes
modeNocar
to_latitudeYes
to_longitudeYes

Input Schema (JSON Schema)

{ "properties": { "from_latitude": { "title": "From Latitude", "type": "number" }, "from_longitude": { "title": "From Longitude", "type": "number" }, "mode": { "default": "car", "title": "Mode", "type": "string" }, "to_latitude": { "title": "To Latitude", "type": "number" }, "to_longitude": { "title": "To Longitude", "type": "number" } }, "required": [ "from_latitude", "from_longitude", "to_latitude", "to_longitude" ], "title": "get_route_directionsArguments", "type": "object" }

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/jagan-shanmugam/open-streetmap-mcp'

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