✓ Verified 💻 Development ✓ Enhanced Data

Maps Osrm

Distance, routing, and geocoding using free APIs (OSRM + Nominatim/OSM)

Rating
3.9 (468 reviews)
Downloads
23,804 downloads
Version
1.0.0

Overview

Distance, routing, and geocoding using free APIs (OSRM + Nominatim/OSM)

Complete Documentation

View Source →

Maps

Free distance/routing (OSRM) and geocoding (Nominatim/OSM). No API keys needed.

Geocoding (place name → coordinates)

bash
bash scripts/geocode.sh "Times Square, New York"

Returns lat,lon and display name. Use this first when you have place names instead of coordinates.

Distance & Route

bash
bash scripts/distance.sh <origin_lat>,<origin_lon> <dest_lat>,<dest_lon> [mode]

Modes: driving (default), foot, bicycle

Examples:

bash
# Manhattan to JFK Airport
bash scripts/distance.sh 40.7580,-73.9855 40.6413,-73.7781 driving

# Golden Gate Park to Fisherman's Wharf (walking)
bash scripts/distance.sh 37.7694,-122.4862 37.8080,-122.4177 foot

Workflow

  • If user gives place names → geocode both with geocode.sh
  • Use returned lat,lon pairs with distance.sh
  • Report distance in km and duration in minutes

Limits

  • OSRM: free public demo server, no hard rate limit but be reasonable
  • Nominatim: max 1 request/second (OSM policy), include User-Agent
  • No live traffic data — durations are estimates based on road type/speed
  • Routing is road-network only (no public transit)

Installation

Terminal bash

openclaw install maps-osrm
    
Copied!

💻Code Examples

bash scripts/geocode.sh "Times Square, New York"

bash-scriptsgeocodesh-times-square-new-york.txt
Returns lat,lon and display name. Use this first when you have place names instead of coordinates.

## Distance & Route

bash scripts/distance.sh <origin_lat>,<origin_lon> <dest_lat>,<dest_lon> [mode]

bash-scriptsdistancesh-originlatoriginlon-destlatdestlon-mode.txt
Modes: `driving` (default), `foot`, `bicycle`

Examples:
example.sh
# Manhattan to JFK Airport
bash scripts/distance.sh 40.7580,-73.9855 40.6413,-73.7781 driving

# Golden Gate Park to Fisherman's Wharf (walking)
bash scripts/distance.sh 37.7694,-122.4862 37.8080,-122.4177 foot

Tags

#coding_agents-and-ides #api

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author adhishthite
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install maps-osrm