enturlisted
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