routing

routing is a skill for Claude Code, Codex from ellmos-ai/bach. It costs 27 tokens per session (634 once invoked), scanned A, original, MIT.

A routing service that calculates travel routes between GPS coordinates for cars, bicycles, and walking. It can also turn place names into coordinates using OpenStreetMap data.

In plain words
What is it for?
Use it as a Python library or command-line tool to calculate distance and travel time, format readable route descriptions, or find coordinates for a named place.
Why use it?
It removes the need to implement route calculation and place-name lookup yourself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it as a Python library or command-line tool to calculate distance and travel time, format readable route descriptions, or find coordinates for a named place.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ellmos-ai/bach/routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ellmos-ai/bach --skill routing
Clone the repo
git clone --depth 1 https://github.com/ellmos-ai/bach

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/ellmos-ai/bach/routing/github.svg)](https://agentmods.dev/skills/ellmos-ai/bach/routing)
Your own site
<a href="https://agentmods.dev/skills/ellmos-ai/bach/routing"><img src="https://agentmods.dev/badge/skills/ellmos-ai/bach/routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/ellmos-ai/bach/routing"><img src="https://agentmods.dev/badge/skills/ellmos-ai/bach/routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00634
Opus 5.5 $0.00011 $0.00254
Sonnet 5.5 $0.00005 $0.00127
Haiku 4.5 $0.00003 $0.00063

Measured 1mo ago against content hash f324c90ea26b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, routing_service.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

system/hub/_services/routing/SKILL.md · 72 lines

What it actually says

BACH Routing Service

Version: 1.0 Autor: BACH System Datum: 2026-02-18 API-Key: Nicht erforderlich (OSRM public, Nominatim)

Beschreibung

Berechnet Routen zwischen GPS-Koordinaten (Auto, Fahrrad, zu Fuss). Datenquelle: OSRM oeffentliche Instanz (router.project-osrm.org). Geocoding: Nominatim / OpenStreetMap.

Nutzung (Library)

import sys
sys.path.insert(0, str(BACH_DIR))
from hub._services.routing.routing_service import get_route, get_route_text, geocode_place

# Lesbarer String
text = get_route_text(
    start=(53.551, 9.994),
    end=(52.520, 13.405),
    mode="car",
    start_name="Hamburg",
    end_name="Berlin"
)

# Strukturiertes Dict
result = get_route(start=(53.551, 9.994), end=(52.520, 13.405), mode="car")
# -> {"distance_km": 64.2, "duration_str": "1h 1min", ...}

# Ortsname -> Koordinaten
coords = geocode_place("Freiburg im Breisgau")
# -> (47.9957839, 7.8493949)

Nutzung (CLI)

python routing_service.py <start_lat> <start_lon> <end_lat> <end_lon> [mode]
python routing_service.py 47.761 8.079 47.994 7.849 car
python routing_service.py 47.761 8.079 47.994 7.849 bike

Routing-Modi

Modus Bedeutung
car Auto (Standard)
bike Fahrrad
foot Zu Fuss

Rueckgabefelder (get_route)

  • distance_km – Distanz in km
  • duration_min – Fahrzeit in Minuten
  • duration_str – Lesbare Fahrzeit (z.B. "1h 5min")
  • mode_label – Modus auf Deutsch ("Auto", "Fahrrad", ...)
  • mode_icon – Emoji (🚗, 🚲, 🚶)

Integration

  • Telegram Bridge: Nutzer sendet GPS-Pin, dann z.B. "Route nach Freiburg"
  • Claude ermittelt Ziel-Koordinaten via geocode_place() und ruft routing_service.py auf
  • Empfohlene Nutzung in Claude: via Bash-Tool als Subprocess
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +10 lines · +27 tokens per session f324c90ea26b
  2. 1mo ago First seen · 62 lines · 0 tokens per session scan A 5394d15e9a51

Subscribe to this mod's changes

routing is a skill published in the GitHub repository ellmos-ai/bach (8 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 634 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

django-patterns

Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.

affaan-m/ECC · 32 tokens

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

mem0-status

Diagnoses mem0 connectivity, API key validity, and memory read/write functionality. Use when memory operations fail, searches return empty, addmemory errors occur, or to verify the plugin is working correctly.

mem0ai/mem0 · 44 tokens

status

Show whether Mem0 memory is working in this repository, covering configuration, capture state, pending flushes, and whether the Mem0 API key is valid. Use when the user asks whether memory is on, why a memory is missing, or anything looks broken.

mem0ai/mem0 · 54 tokens

cloud

Documentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation. Use this skill whenever the user needs help with the Cloud REST API (v2, v3, or v4), browser-use-sdk (Python or TypeScript), X-Browser-Use-API-Key authentication, cloud sessions, browser profiles, profile sync, CDP…

browser-use/browser-use · 177 tokens