Mu
News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.
ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ
Plan bike routes with a self-hosted OSM service: facts only, with weather and sights.หน้ารายการเรียงด้วยคะแนนการใช้งาน (เต็ม 100) จากส่วนเหล่านี้
| ความนิยม | 0/80 | ดาว GitHub หรือยอดดาวน์โหลดต่อสัปดาห์ ค่ามากนับ 60 ค่าน้อยนับ 20 |
|---|---|---|
| ความสด | 12/12 | ออกรุ่นหรือแก้โค้ดใน 30 วัน ได้เต็ม |
| ระบบยังตอบ | 0/8 | endpoint บนคลาวด์ตอบตอนตรวจล่าสุด |
| คะแนนการใช้งาน | 12/100 |
คุณภาพ: ผลตรวจเบื้องต้นผ่าน 3/3 ข้อ (แสดงให้ดู ไม่ได้ใช้เรียง) · ความมาแรง: ยังไม่มีข้อมูล (ใช้เรียงเฉพาะแท็บมาแรง)
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ให้ AI ติดตั้งให้ด้วยประโยคเดียว
ติดตั้ง Bike Router ให้หน่อย ทำตาม https://mcp.popnx.com/i/jonasheinickebio-bike-router.md แสดงคำสั่งให้ฉันดูและรอฉันตกลงก่อนรันคัดลอกไปวางในแชตของ AI ที่ทำงานในเครื่องคุณได้ (เช่น Claude Code, Cursor) · AI จะอ่านขั้นตอนจากเรา แสดงคำสั่งให้ดู และรอคุณตกลงก่อน · ไม่ต้องใช้คีย์ ไม่ต้องสมัคร · ดูข้อความเต็มที่ AI จะอ่าน
ผลตรวจผ่าน 3/3 · ทำงานบนเครื่องคุณ · ✓ ตรวจคำสั่งแล้ว 13 พ.ย. 2569
ขั้นแรก: คุณใช้ AI ตัวไหน
เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง
ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน
ต้องกรอกค่าตั้ง 1 ช่อง (BIKE_ROUTER_API_URL) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
uv --versionMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: uv ไม่มีตัวติดตั้งแบบกดเอง คัดลอกคำสั่งหนึ่งบรรทัดของเครื่องคุณ (macOS หรือ Windows) จากหน้าทางการของ uv ไปวางใน Terminal · ไม่ต้องลง Python แยก uv ดาวน์โหลดให้เองเมื่อต้องใช้
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: uv --version
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ uv
ค่าเหล่านี้เป็นค่าตั้งของโปรแกรม ไม่ใช่คีย์ ไม่ต้องสมัครอะไร ใส่ตามที่ผู้ทำอธิบาย
BIKE_ROUTER_API_URL Address of the running pyBikeRouter API this server asks (http or https). · ค่าเริ่มต้น http://127.0.0.1:8000คำอธิบายยังเป็นภาษาอังกฤษตามต้นฉบับ
SettingsDeveloperEdit Config
{
"mcpServers": {
"bike-router": {
"command": "uvx",
"args": [
"bike-router",
"mcp",
"serve"
],
"env": {
"BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
}
}
}
}ใช้ Bike Router บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude บอกว่ากำลังใช้ Bike Router หรือมีชื่อเครื่องมือของ Bike Router ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ChatGPT ยังต่อ Bike Router ไม่ได้
Bike Router ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ
ก · ใช้แอปที่ต่อ Bike Router ได้
ข · ตัวอื่นในหมวด เที่ยว แผนที่ และอากาศ ที่ต่อกับ ChatGPT ได้
เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์
ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน
ต้องกรอกค่าตั้ง 1 ช่อง (BIKE_ROUTER_API_URL) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
uv --versionMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: uv ไม่มีตัวติดตั้งแบบกดเอง คัดลอกคำสั่งหนึ่งบรรทัดของเครื่องคุณ (macOS หรือ Windows) จากหน้าทางการของ uv ไปวางใน Terminal · ไม่ต้องลง Python แยก uv ดาวน์โหลดให้เองเมื่อต้องใช้
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: uv --version
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ uv
ค่าเหล่านี้เป็นค่าตั้งของโปรแกรม ไม่ใช่คีย์ ไม่ต้องสมัครอะไร ใส่ตามที่ผู้ทำอธิบาย
BIKE_ROUTER_API_URL Address of the running pyBikeRouter API this server asks (http or https). · ค่าเริ่มต้น http://127.0.0.1:8000คำอธิบายยังเป็นภาษาอังกฤษตามต้นฉบับ
Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell
claude mcp add --scope user bike-router --env BIKE_ROUTER_API_URL=http://127.0.0.1:8000 -- uvx bike-router mcp serveต้องเห็น Bike Router ในรายการและขึ้นว่าเชื่อมต่อแล้ว
ใช้ Bike Router บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude Code บอกว่ากำลังใช้ Bike Router หรือมีชื่อเครื่องมือของ Bike Router ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน
ต้องกรอกค่าตั้ง 1 ช่อง (BIKE_ROUTER_API_URL) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
uv --versionMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: uv ไม่มีตัวติดตั้งแบบกดเอง คัดลอกคำสั่งหนึ่งบรรทัดของเครื่องคุณ (macOS หรือ Windows) จากหน้าทางการของ uv ไปวางใน Terminal · ไม่ต้องลง Python แยก uv ดาวน์โหลดให้เองเมื่อต้องใช้
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: uv --version
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ uv
ค่าเหล่านี้เป็นค่าตั้งของโปรแกรม ไม่ใช่คีย์ ไม่ต้องสมัครอะไร ใส่ตามที่ผู้ทำอธิบาย
BIKE_ROUTER_API_URL Address of the running pyBikeRouter API this server asks (http or https). · ค่าเริ่มต้น http://127.0.0.1:8000คำอธิบายยังเป็นภาษาอังกฤษตามต้นฉบับ
ในค่าตั้งของ Bike Router ช่อง BIKE_ROUTER_API_URL ยังว่าง ใส่คีย์ของคุณแล้วบันทึก
ใช้ Bike Router บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Cursor บอกว่ากำลังใช้ Bike Router หรือมีชื่อเครื่องมือของ Bike Router ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน
ต้องกรอกค่าตั้ง 1 ช่อง (BIKE_ROUTER_API_URL) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ลงไว้แล้วหรือยัง? เช็กก่อน · เปิด Terminal แล้วพิมพ์คำสั่งนี้ กด Enter
uv --versionMac: กด ⌘ + Space พิมพ์ Terminal แล้วกด Enter
Windows: เปิดเมนู Start พิมพ์ Windows PowerShell แล้วกด Open
ยังไม่ได้ลง: uv ไม่มีตัวติดตั้งแบบกดเอง คัดลอกคำสั่งหนึ่งบรรทัดของเครื่องคุณ (macOS หรือ Windows) จากหน้าทางการของ uv ไปวางใน Terminal · ไม่ต้องลง Python แยก uv ดาวน์โหลดให้เองเมื่อต้องใช้
ลงเสร็จแล้ว ปิด Terminal เปิดใหม่ แล้วพิมพ์คำสั่งเดิมอีกครั้ง ต้องขึ้นเลขรุ่น: uv --version
ลงครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ uv
ค่าเหล่านี้เป็นค่าตั้งของโปรแกรม ไม่ใช่คีย์ ไม่ต้องสมัครอะไร ใส่ตามที่ผู้ทำอธิบาย
BIKE_ROUTER_API_URL Address of the running pyBikeRouter API this server asks (http or https). · ค่าเริ่มต้น http://127.0.0.1:8000คำอธิบายยังเป็นภาษาอังกฤษตามต้นฉบับ
ในค่าตั้งของ Bike Router ช่อง BIKE_ROUTER_API_URL ยังว่าง ใส่คีย์ของคุณแล้วบันทึก
ใช้ Bike Router บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า VS Code บอกว่ากำลังใช้ Bike Router หรือมีชื่อเครื่องมือของ Bike Router ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
Claude Code
claude mcp add --scope user bike-router --env BIKE_ROUTER_API_URL=http://127.0.0.1:8000 -- uvx bike-router mcp serveClaude 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คำอธิบายยังเป็นภาษาอังกฤษตามต้นฉบับ
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
pypi: bike-routerดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569
ติดตั้งบนเครื่องได้ใน
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 19 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub JonasHeinickeBio ซึ่งเป็นเจ้าของ repo
มีการแก้โค้ดล่าสุด เมื่อวานซืน
ใช้ MIT
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
ไม่พบรายการใน OSV.dev สำหรับ bike-router@0.3.0
ตรวจเฉพาะตัวแพ็กเกจรุ่นนี้ ไม่ใช่ทุก dependency · ตรวจเมื่อ 15 พ.ย. 2569
ถ้าคุณเป็นผู้ทำตัวนี้ คัดลอกโค้ดนี้ไปวางใน README ได้เลย ป้ายลิงก์กลับมาที่หน้านี้
[](https://mcp.popnx.com/th/servers/jonasheinickebio-bike-router)ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์
ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย
ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx
ยังไม่มีรีวิว
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 3 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด เมื่อวานซืน และส่งรุ่นล่าสุด (0.3.0) เข้า registry 23 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Mu, Award Travel Finder, Killbottleneck, Whimsical, HasData Google Maps
หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.
Search award flight availability and points pricing across 27 airlines and 23 loyalty programs.
Free-to-self-host goal and process maps for humans and AI agents, with REST API and MCP.
Create and edit flowcharts, mind maps, wireframes, and docs in Whimsical, or search your workspace.
Google Maps places, reviews, contributor history, photos and posts as JSON. No Google Cloud.
| ตัวนี้ Bike Router | Mu | Award Travel Finder | Killbottleneck | Whimsical | HasData Google Maps | |
|---|---|---|---|---|---|---|
| ทำงานที่ไหน | ต้องลงในเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ต้องลงในเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | มีทั้งบนคลาวด์และแบบลงเครื่อง |
| ต้องใส่คีย์ | ไม่ | ไม่ | ไม่ | ใช่ | ไม่ | ใช่ |
| กด + ใน Claude ได้ | ไม่ | ไม่ | ไม่ | ไม่ | ใช่ | ไม่ |
| ผลตรวจเบื้องต้น | 3/3 | 4/4 | 3/3 | 3/3 | 4/4 | 5/5 |
| สัญญาอนุญาต | MIT | AGPL-3.0 | MIT | MIT | MIT | MIT |
| ราคา | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน |
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
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).
The full documentation suite lives in docs/:
| Document | Contents |
|---|---|
| Architecture | Graph nodes, state, branching, terminal statuses, error model |
| API | Endpoint contracts, response statuses, artifact serving |
| Configuration | Every environment variable, validation rules, deployment notes |
| Providers | Protocols, ORS client/adapter behaviour, geocoders, BRouter/Valhalla adapters, adding a backend |
| Backend comparison | Measured ORS vs BRouter behaviour per bike type, combining both engines |
| Geocoding | Nominatim vs Pelias, confidence/ambiguity semantics, tuning |
| Scoring & exports | Score math, uncertainty policy, explanation rules, GeoJSON/GPX |
| Plan from words | Describe a ride in a sentence; an optional LLM turns it into the structured request (never coordinates) |
| Weather | Forecast along the route at your departure time: temperature, rain, wind vs. riding direction (free, keyless providers) |
| Self-hosted stack | Run routing and/or geocoding locally from one OSM extract; hardware requirements and small-PC options |
| Testing | Test layout, mocking conventions, live tests, CI |
| Web planner | Putting places into the trip; click a point on the map and choose where in the route it goes |
| iPhone / Tailscale | Use the planner from an iPhone as a home-screen app over your tailnet |
| Roadmap | Planned work and explicit non-goals |
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.
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.
| Variable | Purpose | Default |
|---|---|---|
ORS_API_KEY | openrouteservice API key | (required for live routing) |
ORS_BASE_URL | openrouteservice base URL | https://api.openrouteservice.org |
ORS_TIMEOUT_S | ORS request timeout (seconds) | 10.0 |
ORS_MAX_RETRIES | Retries for timeouts/5xx | 2 |
GEOCODER_PROVIDER | Geocoder 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_URL | Nominatim base URL (ignored when GEOCODER_PROVIDER=pelias) | https://nominatim.openstreetmap.org |
GEOCODER_TIMEOUT_S | Geocoder request timeout | 5.0 |
GEOCODER_USER_AGENT | Required by Nominatim's usage policy | bike-routing-agent/0.1 |
GEOCODER_CACHE_TTL_S | In-memory geocode cache TTL | 3600 |
GEOCODER_AMBIGUITY_MARGIN | Confidence gap below which top-2 results are "ambiguous" | 0.05 |
GEOCODER_MIN_CONFIDENCE | Minimum confidence to auto-accept a top result | 0.3 |
VALHALLA_BASE_URL | Base URL of a self-hosted Valhalla (meili) server | http://localhost:8002 |
VALHALLA_TIMEOUT_S | Per-request Valhalla timeout (seconds) | 30.0 |
VALHALLA_MAX_RETRIES | Retries for Valhalla timeouts/5xx | 1 |
EXPORT_DIR | Local directory for GeoJSON/GPX artifacts | exports |
DATABASE_URL | PostgreSQL/PostGIS URL: records route history, enables /v1/history/* (docs/persistence.md) | unset |
ARTIFACT_BACKEND | local or database (artifacts stored in PostgreSQL) | local |
LOG_LEVEL | Log level | INFO |
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.
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).
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.
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 } }'
{
"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.
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 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)