原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Bike Router

作者:JonasHeinickeBio版本 0.3.0i★ 0i在你的电脑上运行代码仓库 ↗
注册名称io.github.JonasHeinickeBio/bike-router

安装方法

What it does

Plan bike routes with a self-hosted OSM service: facts only, with weather and sights.

  • Connects 在你的电脑上运行
  • Account or key No key needed · 1 setting to fill in (BIKE_ROUTER_API_URL)
  • Category 旅行、地图与天气

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度0/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分12/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Bike Router。按照 https://mcp.popnx.com/i/jonasheinickebio-bike-router.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • BIKE_ROUTER_API_URL 此服务器调用的正在运行的 pyBikeRouter API 地址(http 或 https)
      查看英文原文Address of the running pyBikeRouter API this server asks (http or https).
      · 默认值 http://127.0.0.1:8000

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  3. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  4. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "bike-router": {
          "command": "uvx",
          "args": [
            "bike-router",
            "mcp",
            "serve"
          ],
          "env": {
            "BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
          }
        }
      }
    }
  5. 退出 Claude 再重新打开

  6. 试一试

    用 Bike Router 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Bike Router,或回答中出现 Bike Router 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Bike Router

Bike Router 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Bike Router 的应用

  • 需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次)

B · 旅行、地图与天气 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • BIKE_ROUTER_API_URL 此服务器调用的正在运行的 pyBikeRouter API 地址(http 或 https)
      查看英文原文Address of the running pyBikeRouter API this server asks (http or https).
      · 默认值 http://127.0.0.1:8000

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user bike-router --env BIKE_ROUTER_API_URL=http://127.0.0.1:8000 -- uvx bike-router mcp serve
  5. 在 Claude Code 中输入 /mcp

    应能看到 Bike Router 在列表中并显示已连接

  6. 试一试

    用 Bike Router 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Bike Router,或回答中出现 Bike Router 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • BIKE_ROUTER_API_URL 此服务器调用的正在运行的 pyBikeRouter API 地址(http 或 https)
      查看英文原文Address of the running pyBikeRouter API this server asks (http or https).
      · 默认值 http://127.0.0.1:8000

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Bike Router 的设置中,BIKE_ROUTER_API_URL 还是空的,填入你的密钥并保存

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Bike Router 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Bike Router,或回答中出现 Bike Router 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要填写 1 项设置(BIKE_ROUTER_API_URL) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 uv(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    uv --version
    • 显示版本号(例如 uv …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载

    打开 uv 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version

    安装一次,所有需要 uv 的工具都能用

  2. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • BIKE_ROUTER_API_URL 此服务器调用的正在运行的 pyBikeRouter API 地址(http 或 https)
      查看英文原文Address of the running pyBikeRouter API this server asks (http or https).
      · 默认值 http://127.0.0.1:8000

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Bike Router 的设置中,BIKE_ROUTER_API_URL 还是空的,填入你的密钥并保存

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Bike Router 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Bike Router,或回答中出现 Bike Router 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Bike Router 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user bike-router --env BIKE_ROUTER_API_URL=http://127.0.0.1:8000 -- uvx bike-router mcp serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "bike-router": {
      "command": "uvx",
      "args": [
        "bike-router",
        "mcp",
        "serve"
      ],
      "env": {
        "BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "bike-router": {
      "command": "uvx",
      "args": [
        "bike-router",
        "mcp",
        "serve"
      ],
      "env": {
        "BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "bike-router": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "bike-router",
        "mcp",
        "serve"
      ],
      "env": {
        "BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
      }
    }
  }
}

需要你填写的值

  • BIKE_ROUTER_API_URL 必填 env
    此服务器调用的正在运行的 pyBikeRouter API 地址(http 或 https)
    查看英文原文Address of the running pyBikeRouter API this server asks (http or https).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
28/周
连接方式
在你的电脑上运行
最新版本i
0.3.0
发布到注册中心i
2026年10月27日
代码最后更新i
2026年11月17日
作者
JonasHeinickeBio
软件包
pypi: bike-router
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 JonasHeinickeBio 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于前天

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 bike-router@0.3.0 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/jonasheinickebio-bike-router.svg)](https://mcp.popnx.com/en/servers/jonasheinickebio-bike-router)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“旅行、地图与天气”中的其他服务器比较i

  • 星标数多于此分类中其他 2025 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2025 个服务器的 55% 更新
  • 基础检查结果等于或优于此分类中其他 2025 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Bike Router 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于前天,最新版本(0.3.0)于23天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Mu, Award Travel Finder, Killbottleneck, Gondola Award Travel Search, Whimsical

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Mu

News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.

作者:micro正在增长★ 4404个月前更新

在云端运行✓ micro.mu

Killbottleneck

Free-to-self-host goal and process maps for humans and AI agents, with REST API and MCP.

作者:tengolabs起步阶段↓ 328/周★ 1412天前更新

在你的电脑上运行✓ 服务方 · killbottleneck.com

Whimsical

Create and edit flowcharts, mind maps, wireframes, and docs in Whimsical, or search your workspace.

作者:WhimsicalCode起步阶段★ 112个月前更新

在云端运行✓ 服务方 · whimsical.com
与相似项目对比
本项
Bike Router
MuAward Travel FinderKillbottleneckGondola Award Travel SearchWhimsical
运行位置需要安装在电脑上在云端运行,无需安装在云端运行,无需安装需要安装在电脑上在云端运行,无需安装在云端运行,无需安装
需要密钥否否否是否否
可在 Claude 中按 + 添加否否否否否是
基础检查3/34/43/33/34/44/4
许可证MITAGPL-3.0MITMITMITMIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

bike-routing-agent

An OSM-based bike-routing service: a typed, provider-neutral domain model, a full openrouteservice API client plus routing adapter, and a LangGraph workflow that turns a validated route request into an explainable, exportable cycling route.

The LLM (where used) may parse free text, ask clarification questions, and explain a chosen route. It never invents coordinates, geometry, elevation, or route suitability -- all of that comes from OSM-derived routing engines.

Easy install (no programming needed)

Download pybikerouter-easy- .zip from the Releases page, unzip it, install Docker Desktop, and double-click the Start file for your computer. The first start asks one question -- where you ride -- downloads that area's map data, and opens the planner in your browser. Step by step, in plain words: docs/easy-install.md (and START-HERE.txt in the download).

Documentation

The full documentation suite lives in docs/:

DocumentContents
ArchitectureGraph nodes, state, branching, terminal statuses, error model
APIEndpoint contracts, response statuses, artifact serving
ConfigurationEvery environment variable, validation rules, deployment notes
ProvidersProtocols, ORS client/adapter behaviour, geocoders, BRouter/Valhalla adapters, adding a backend
Backend comparisonMeasured ORS vs BRouter behaviour per bike type, combining both engines
GeocodingNominatim vs Pelias, confidence/ambiguity semantics, tuning
Scoring & exportsScore math, uncertainty policy, explanation rules, GeoJSON/GPX
Plan from wordsDescribe a ride in a sentence; an optional LLM turns it into the structured request (never coordinates)
WeatherForecast along the route at your departure time: temperature, rain, wind vs. riding direction (free, keyless providers)
Self-hosted stackRun routing and/or geocoding locally from one OSM extract; hardware requirements and small-PC options
TestingTest layout, mocking conventions, live tests, CI
Web plannerPutting places into the trip; click a point on the map and choose where in the route it goes
iPhone / TailscaleUse the planner from an iPhone as a home-screen app over your tailnet
RoadmapPlanned work and explicit non-goals

Architecture

FastAPI

| v LangGraph RouteAgentState | +--> parse_request (structured input first; LLM extraction is an injectable dependency) +--> validate_request (Pydantic) +--> geocode_locations (Nominatim by default, public or self-hosted; ambiguity -> clarification, never a guess) +--> route_with_provider (openrouteservice; engine-neutral RoutingRequest in, RouteCandidate out) +--> score_candidates (deterministic distance/elevation/warning scoring) +--> explain_and_export (facts-only explanation + GeoJSON/GPX export) | v JSON response + GeoJSON/GPX artifacts

Graph branches:

START -> parse_request

-> validate_request -> (invalid | awaiting_clarification) -> END -> geocode_locations -> (awaiting_clarification | provider_failure) -> END -> route_with_provider -> (no_route | provider_failure) -> END -> score_candidates -> (no_route) -> END -> explain_and_export -> END

Every path ends with an explicit status; the graph never calls a routing provider unless validation and geocoding both succeeded, and it never returns without a terminal status.

Setup

Requires Python 3.11+ and Poetry.

poetry install

cp .env.example .env

poetry install creates an in-project virtualenv (.venv/, see poetry.toml) with both runtime and dev dependencies. Run any command inside it with poetry run , or poetry shell to activate it directly.

Edit .env and set ORS_API_KEY to a valid openrouteservice API key.

Environment variables
VariablePurposeDefault
ORS_API_KEYopenrouteservice API key(required for live routing)
ORS_BASE_URLopenrouteservice base URLhttps://api.openrouteservice.org
ORS_TIMEOUT_SORS request timeout (seconds)10.0
ORS_MAX_RETRIESRetries for timeouts/5xx2
GEOCODER_PROVIDERGeocoder backend: nominatim (public or self-hosted) or pelias (needs a Pelias API behind ORS_BASE_URL, see docs/geocoding.md; refuses the public ORS URL at startup)nominatim
GEOCODER_BASE_URLNominatim base URL (ignored when GEOCODER_PROVIDER=pelias)https://nominatim.openstreetmap.org
GEOCODER_TIMEOUT_SGeocoder request timeout5.0
GEOCODER_USER_AGENTRequired by Nominatim's usage policybike-routing-agent/0.1
GEOCODER_CACHE_TTL_SIn-memory geocode cache TTL3600
GEOCODER_AMBIGUITY_MARGINConfidence gap below which top-2 results are "ambiguous"0.05
GEOCODER_MIN_CONFIDENCEMinimum confidence to auto-accept a top result0.3
VALHALLA_BASE_URLBase URL of a self-hosted Valhalla (meili) serverhttp://localhost:8002
VALHALLA_TIMEOUT_SPer-request Valhalla timeout (seconds)30.0
VALHALLA_MAX_RETRIESRetries for Valhalla timeouts/5xx1
EXPORT_DIRLocal directory for GeoJSON/GPX artifactsexports
DATABASE_URLPostgreSQL/PostGIS URL: records route history, enables /v1/history/* (docs/persistence.md)unset
ARTIFACT_BACKENDlocal or database (artifacts stored in PostgreSQL)local
LOG_LEVELLog levelINFO

Running the API

poetry run uvicorn bike_routing_agent.api:app --reload

The app also serves a built-in web UI (map-based route planner) at http://localhost:8000/, with the interactive API docs at /docs.

Command-line interface

Installing the package exposes a bike-router command (also runnable as python -m bike_routing_agent.cli) organised into subcommand groups:

bike-router route plan --origin "Berlin Hbf" --destination "Potsdam" \

--bike-type gravel --target-distance-km 30 --output plan.json bike-router serve start --port 8000 bike-router docker up # docker compose -f docker/compose.yaml up -d --build bike-router docker logs -f bike-router config show # effective settings, secrets redacted bike-router config check # validate settings against the environment bike-router providers list # provider names and bike-type -> ORS profile map bike-router profile settings --bike-type touring # what a request may tune (route plan --profile-param), from the LinkML schema bike-router route plan ... --format text --gpx best.gpx # alternatives, sight stops, exports bike-router route show plan.json # a saved plan again; route export writes any alternative bike-router poi along --route plan.json # sights near a route, ranked by fame bike-router brouter needed|info|download # BRouter map tiles (asks before downloading) bike-router history list|show|stats # past plans (needs DATABASE_URL) bike-router status show # readiness of every component and the active features bike-router chat start # plan routes by chatting (docs/chat.md)

Everything the API and the web form do is available from the CLI -- see docs/cli.md.

route plan --text "50 km gravel loop from Braunschweig" uses the optional LLM parser (docs/llm-parser.md).

route plan accepts lat,lon pairs or place text for --origin, --destination and repeated --via waypoints, prints the JSON result and exits 0 on ready, 1 on clarification/provider failure, 2 on usage errors. With DATABASE_URL set it also records the plan in the route history (best effort; plan_id in the output, --no-record to skip), a forecast along the route at --departure-time (docs/weather.md), and bike-router db migrate / db status manage the schema (docs/persistence.md).

Running with Docker

All container assets live in docker/:

cp .env.example .env        # set ORS_API_KEY

docker compose -f docker/compose.yaml up --build

Open http://localhost:8000/ for the web UI. Route artifacts are stored in the named pybikerouter-exports volume. See docs/self-hosted.md for the optional local routing / geocoding stack -- including what it needs and how to run just one half on a small machine.

Example request
curl -X POST http://localhost:8000/v1/route/plan \

-H 'Content-Type: application/json' \ -d '{ "origin": "Braunschweig Hauptbahnhof", "destination": "Wolfenbüttel", "constraints": { "bike_type": "gravel", "avoid_high_traffic_roads": true, "max_ascent_m": 500 } }'

Example response
{

"status": "ready", "route": { "provider": "ors", "provider_profile": "cycling-regular", "geometry_geojson": {"type": "LineString", "coordinates": []}, "metrics": { "distance_m": 12500, "duration_s": 2700, "ascent_m": 85, "descent_m": 90, "surface_coverage": {}, "unknown_surface_fraction": null }, "score": 0.91, "score_breakdown": {"distance_fit": 1.0, "elevation_fit": 1.0, "warning_penalty": 0.0}, "warnings": [], "provenance": {"provider": "ors", "profile": "cycling-regular"} }, "candidates": [ {"provider": "ors", "provider_profile": "cycling-regular", "score": 0.91}, {"provider": "brouter", "provider_profile": "trekking", "score": 0.84} ], "explanation": "...", "artifacts": { "geojson_url": "/v1/routes/ .geojson", "gpx_url": "/v1/routes/ .gpx" }, "clarification": [], "errors": [] }

If origin/destination are ambiguous or unresolved, status is awaiting_clarification and clarification lists the candidate places to choose from -- no route is generated from a guess.

Bike types

constraints.bike_type selects the routing profile per engine and defaults to gravel. Supported values: road, gravel, touring, mountain, city, ebike, commuter (fast, low-traffic), recumbent. ORS ships four cycling profiles, so e.g. ebike uses cycling-electric while commuter rides on cycling-regular; the self-hosted BRouter provider differentiates further -- gravel, touring, mountain, city, commuter and recumbent each get their own profile, while road and ebike share fastbike (BRouter has no e-assist cost model) (see docs/configuration.md).

Make targets

make lists the everyday commands; they use the project's .venv (or the active environment):

make install       # poetry install

make hooks # the git hooks (commit: lint + types; push: the whole suite) make run # the API with auto-reload (HOST=127.0.0.1 PORT=8000) make check # lint + types + tests without coverage, stops at the first failure make ci # what CI runs: lint, types, tests with the 80 % coverage floor make test-fast ARGS="tests/nodes -k geocode" # a part of the suite (no coverage floor) make deploy # build and restart the local container (bike-router deploy up)

Linting and type che

只显示了开头部分;其余内容请在仓库中阅读