跳到正文
TakoAPI
返回技能列表

maps-osrm

由 adhishthite 提供

Coding Agents & IDEs
369下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

Calculates distances, travel times, and routes between locations using OSRM's public routing server. Geocodes place names to coordinates via Nominatim and OpenStreetMap. No account or API key needed.

Provides routing and geocoding without an API key or account, unlike Google Maps or Mapbox which require registration and have usage costs.

何时使用

  • Finding driving distance between two cities
  • Estimating walking time to a nearby landmark
  • Converting a street address to GPS coordinates
  • Comparing cycling vs driving travel time
  • Planning a road trip with distance estimates

示例工作流

输入

User asks: How long does it take to drive from Times Square to JFK Airport?

智能体
  1. 1

    Geocode 'Times Square, New York' with geocode.sh to get lat/lon

  2. 2

    Geocode 'JFK Airport, New York' with geocode.sh to get lat/lon

  3. 3

    Run distance.sh with both coordinate pairs in driving mode

  4. 4

    Parse the returned distance in km and duration in minutes

输出

Driving distance is approximately 22 km, estimated travel time is 35 minutes

安装

clawhub install adhishthite/maps-osrm

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接