Skip to main content
Glama

OpenStreetMap MCP Server

get_route_directions

Calculate route directions between two geographic points using OpenStreetMap/OSRM. Specify transportation mode, turn-by-turn steps, geometry overview, and segment annotations for detailed or minimized routing information.

Instructions

Calculate detailed route directions between two geographic points.

This tool provides comprehensive routing information between two locations using OpenStreetMap/OSRM. The output can be minimized using the steps, overview, and annotations parameters to reduce the response size.

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) ctx: Context (provided internally by MCP) mode: Transportation mode ("car", "bike", "foot") steps: Turn-by-turn instructions (True/False, Default: False) overview: Geometry output ("full", "simplified", "false"; Default: "simplified") annotations: Additional segment info (True/False, Default: False)

Returns: Dictionary with routing information (summary, directions, geometry, waypoints)

Example: { "from_latitude": 51.3334193, "from_longitude": 9.4540423, "to_latitude": 51.3295516, "to_longitude": 9.4576721, "mode": "car", "steps": false, "overview": "simplified", "annotations": false }

Input Schema

NameRequiredDescriptionDefault
annotationsNo
from_latitudeYes
from_longitudeYes
modeNocar
overviewNosimplified
stepsNo
to_latitudeYes
to_longitudeYes

Input Schema (JSON Schema)

{ "properties": { "annotations": { "default": false, "title": "Annotations", "type": "boolean" }, "from_latitude": { "title": "From Latitude", "type": "number" }, "from_longitude": { "title": "From Longitude", "type": "number" }, "mode": { "default": "car", "title": "Mode", "type": "string" }, "overview": { "default": "simplified", "title": "Overview", "type": "string" }, "steps": { "default": false, "title": "Steps", "type": "boolean" }, "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