← ClaudeAtlas

enturlisted

Look up public transit travel times and routes in Norway using the Entur APIs. Use when the user asks about travel time, transit routes, how to get somewhere, or distance between locations in Norway. Triggers on "travel time from X to Y", "how long from X to Y", "reisetid fra X til Y", "transit from X to Y", "kollektivt fra X til Y", /entur, or any question about getting between two places via public transport in Norway.
magnusrodseth/dotfiles · ★ 0 · Data & Documents · score 62
Install: claude install-skill magnusrodseth/dotfiles
# Entur Transit Lookup Look up public transit routes and travel times anywhere in Norway via Entur's open APIs. Uses curl via Bash. ## Known Location Shortcuts | Shortcut | Address | Coordinates | |----------|---------|-------------| | home, hjemme | Sandakerveien 22E, Oslo | 59.934173, 10.760459 | | office, kontoret, HQ | Torggata 4, Oslo | 59.913795, 10.747224 | ## Workflow ### Step 1: Resolve locations to coordinates If the user provides a known shortcut, use the hardcoded coordinates above. Otherwise, geocode with this fallback chain: **1a. Nominatim (best for addresses AND venue/business names):** ```bash curl -s 'https://nominatim.openstreetmap.org/search?q=<URL_ENCODED_QUERY>&format=json&limit=1&countrycodes=no' \ -H 'User-Agent: magnus-claude-code/1.0' ``` Extract: `[0].lat` and `[0].lon`. Verify `display_name` looks correct (not a different city). Rate limit: max 1 request/second. For bulk lookups, add `sleep 1` between calls or use a single Python script with 1s delays. **1b. Entur geocoder (fallback, best for transit stop names like "Hasle", "Jernbanetorget"):** ```bash curl -s 'https://api.entur.io/geocoder/v1/autocomplete?text=<URL_ENCODED_QUERY>&size=1&lang=no' \ -H 'ET-Client-Name: magnus-claude-code' ``` Extract: `features[0].geometry.coordinates` (returns `[longitude, latitude]`, note the order). **1c. If both fail, ask the user for the street address.** ### Step 2: Query journey planner ```bash curl -s -X POST 'https://api.entur.io/journe