微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🗺️

免费开源地图计算,无需密钥即查即走

OSRM Maps Skill · v1.0.1
效率 安全 B 级 作者 adhishthite 公开目录收录
下载 1.4k 安装 0 收藏 6.2k 浏览 33
原始页面

简介

基于免费开源地图服务(OSRM+Nominatim)实现地理编码、距离计算与路线规划,无需API密钥

原始描述

Distance, routing, and geocoding using free APIs (OSRM + Nominatim/OSM). Use when the user asks about distance between places, travel time, directions, how f...

技能正文


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 curl and python3. metadata: openclaw: requires: bins: [curl, 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 <origin_lat>,<origin_lon> <dest_lat>,<dest_lon> [mode]

Modes: driving (default), foot, bicycle

Examples:

# 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

  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

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)

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

geocodingroutingmapsopenstreetmaposrmnominatimdistance-calculationcli-toolscurlpython

同类 Skill