π¦ ClawHub
OSRM Maps Skill
by @adhishthite
Distance, routing, and geocoding using free APIs (OSRM + Nominatim/OSM). Use when the user asks about distance between places, travel time, directions, how f...
TERMINAL
clawhub install maps-osrmπ About This Skill
name: maps description: Distance, routing, and geocoding using free APIs (OSRM + Nominatim/OSM). Use when the user asks about distance between places, travel time, directions, how far something is, or needs to convert a place name to coordinates. No API key required. Requires python3 (3.6+). metadata: openclaw: requires: bins: [python3]
Maps
Free distance/routing (OSRM) and geocoding (Nominatim/OSM). No API keys needed.
Geocoding (place name β coordinates)
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 scripts/distance.sh , , [mode]
Modes: driving (default), foot, bicycle
Examples:
# Manhattan to JFK Airport
bash scripts/distance.sh 40.7580,-73.9855 40.6413,-73.7781 drivingGolden Gate Park to Fisherman's Wharf (walking)
bash scripts/distance.sh 37.7694,-122.4862 37.8080,-122.4177 foot
Workflow
1. If user gives place names β geocode both with geocode.sh
2. Use returned lat,lon pairs with distance.sh
3. Report distance in km and duration in minutes