Skanetrafiken Trip Planner
Skåne public transport trip planner (Skånetrafiken). Plans bus/train journeys with real-time delays. Supports stations, addresses, landmarks, and cross-border trips to Copenhagen.
Skåne public transport trip planner (Skånetrafiken). Plans bus/train journeys with real-time delays. Supports stations, addresses, landmarks, and cross-border trips to Copenhagen.
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Plan public transport journeys in Skåne, Sweden with real-time departure information.
Search for stations, addresses, or points of interest.
./search-location.sh <query> [limit]
| Argument | Description |
|---|---|
| Location name to search for |
| Number of results to show (default: 3, max: 10) |
Output includes:
ID - The location identifier (use this in journey search)Name - Official name of the locationType - STOP_AREA (station), ADDRESS, or POI (point of interest)Area - Region/municipalityCoordinates - Latitude, longitudeWhen to increase limit:
Plan a journey between two locations using their IDs.
./journey.sh <from-id> <from-type> <to-id> <to-type> [datetime] [mode]
| Argument | Description |
|---|---|
| Origin location ID (from search) or coordinates () |
| , , , or (for coordinates) |
| Destination location ID or coordinates |
| Type of destination |
| Optional: , , |
| Optional: (default) or |
Important: The Journey API only accepts
STOP_AREA and LOCATION types. For ADDRESS or POI results, use the coordinates as lat#lon with type LOCATION.
Before searching, understand what the user wants:
| User Says | Intent | How to Query |
|---|---|---|
| "now", "next bus", "how do I get to" | Travel Now | No datetime parameter |
| "in 30 minutes", "in 1 hour", "after lunch" | Depart Later | Calculate time, use mode |
| "around 15:00", "sometime afternoon" | Around Time | Query with offset (see below) |
| "arrive by 18:00", "need to be there at 9" | Arrive By | Use mode |
| "tomorrow morning", "on Friday at 10" | Future Time | Use specific datetime |
When user wants options "around" a time, query 15-30 minutes earlier to show options before and after:
# User: "I want to travel around 15:00" # Query at 14:30 to get options spanning 14:30-16:00+ ./journey.sh ... "14:30" depart
Convert relative times to absolute:
| User Says | Current: 14:00 | Query Time |
|---|---|---|
| "in 30m" | → | "14:30" |
| "in 1h" | → | "15:00" |
| "in 2 hours" | → | "16:00" |
When presenting journey results to users, use these emojis and formatting guidelines.
| Emoji | Use For |
|---|---|
| 🚂 | Train (Pågatåg, Öresundståg) |
| 🚌 | Bus |
| 🚇 | Metro (Copenhagen) |
| 🚋 | Tram |
| ⛴️ | Ferry |
| 🚶 | Walking segment |
| ⏱️ | Time/duration |
| 🕐 | Departure time |
| 🏁 | Arrival time |
| 📍 | Stop/station |
| 🏠 | Origin (home/start) |
| 🎯 | Destination |
| ⚠️ | Delay or disruption |
| ✅ | On time |
| 🔄 | Transfer/change |
| 🛤️ | Platform/track |
Always include these key elements from the tool output:
For a simple direct journey:
🏠 **Leave home at 09:00**🚶 Walk 450m to Möllevångstorget (5 min)
📍 Möllevångstorget → 🎯 Malmö C 🚌 Bus 5 departs 09:07 from Möllevångstorget 🏁 Arrives 09:18 at Malmö C
⏱️ Total: 18 min
For a journey with transfer:
🏠 **Leave at 08:45**🚶 Walk 300m to Västra Hamnen (4 min)
📍 Västra Hamnen → 🔄 Malmö C → 🎯 Lund C
Leg 1: 🚌 Bus 2 departs 08:51 [🛤️ Läge A] 🏁 Arrives Malmö C 09:05
🔄 Transfer at Malmö C (6 min)
Leg 2: 🚂 Pågatåg departs 09:11 [🛤️ Spår 4] 🏁 Arrives Lund C 09:23
⏱️ Total: 38 min | 🔄 1 change
With delays:
🕐 **Depart 14:30** from Triangeln🚂 Öresundståg 1042 → København H ⚠️ +8 min delay (expected 14:38 instead of 14:30) 🏁 Arrives ~15:25 (normally 15:17)
CRITICAL: Always show walking details from the tool output:
line.distance)Example tool output:
→ WALK 450m from Kalendegatan to Möllevångstorget
Format as:
🚶 Walk 450m to Möllevångstorget (~5 min)
Walk time estimate: ~100m per minute (normal walking speed)
When showing journey options, make timing crystal clear:
I found 3 options for you:Option 1 - Leave now (09:00) ✅ Recommended 🚶 5 min walk → 🚌 Bus 5 at 09:07 → arrives 09:25 ⏱️ Total: 25 min
Option 2 - Leave in 15m (09:15) 🚶 5 min walk → 🚌 Bus 5 at 09:22 → arrives 09:40 ⏱️ Total: 25 min
Option 3 - Leave in 30m (09:30) 🚶 5 min walk → 🚂 Train at 09:37 → arrives 09:48 ⏱️ Total: 18 min | Faster but later departure
Use clear notation for departure times:
| Notation | Meaning |
|---|---|
| "now" | Immediately |
| "in 15m" | 15 minutes from now |
| "in 1h" | 1 hour from now |
| "at 14:30" | Specific time |
Follow this workflow when a user asks for a trip:
Parse what the user wants:
Search for origin and destination separately:
./search-location.sh "Malmö C" ./search-location.sh "Emporia"
Check each result carefully:
Exact or close match? - If the name matches what the user asked for, proceed.
Multiple results returned? - The script shows up to 10 matches. If the first result isn't clearly correct, ask the user to confirm.
Name significantly different? - If user asked for "the mall near Hyllie" and result shows "Emporia", confirm with user: "I found Emporia shopping center near Hyllie. Is this correct?"
No results found? - Try alternative strategies (see below).
When results don't match or are ambiguous, ask clarifying questions:
I searched for "centrum" and found multiple locations: 1. Malmö Centrum (bus stop) 2. Lund Centrum (bus stop) 3. Helsingborg Centrum (bus stop)Which one did you mean?
When no results are found, try these strategies:
Try with city name for addresses:
# If "Storgatan 10" fails, try: ./search-location.sh "Storgatan 10, Malmö"
Try official station names:
# If "Malmö station" fails, try: ./search-location.sh "Malmö C"
Try landmark name only (without city):
# If "Emporia, Malmö" fails, try: ./search-location.sh "Emporia"
Use coordinates as last resort:
lat#lon format directlyThe Journey API only accepts:
STOP_AREA - Bus/train stations (use ID directly)LOCATION - GPS coordinates as lat#lonIf search returns ADDRESS or POI:
lat#lon with type LOCATIONExample:
# Search returns: ID: 123, Type: ADDRESS, Coordinates: 55.605, 13.003 # Use in journey as: ./journey.sh "55.605#13.003" LOCATION 9021012080000000 STOP_AREA
Once you have confirmed IDs/coordinates for both locations:
./journey.sh <from-id> <from-type> <to-id> <to-type> [datetime] [mode]
Use the emoji guide above to present results clearly. Always use actual numbers from the tool output - never speculate or estimate.
The search API is sensitive to formatting. Follow these rules:
Use the landmark name WITHOUT city name.
# CORRECT ./search-location.sh "Emporia" ./search-location.sh "Triangeln" ./search-location.sh "Turning Torso"WRONG - city name breaks POI search
./search-location.sh "Emporia, Malmö" # May return wrong location! ./search-location.sh "Triangeln, Malmö" # Unnecessary, may fail
Include city name for better accuracy.
# CORRECT ./search-location.sh "Kalendegatan 12, Malmö" ./search-location.sh "Storgatan 25, Lund" ./search-location.sh "Drottninggatan 5, Helsingborg"RISKY - may be ambiguous
./search-location.sh "Kalendegatan 12" # Works if unambiguous
Use "C" suffix for central stations.
# CORRECT ./search-location.sh "Malmö C" ./search-location.sh "Lund C" ./search-location.sh "Helsingborg C" ./search-location.sh "Malmö Hyllie" ./search-location.sh "Malmö Triangeln"WRONG
./search-location.sh "Malmö" # Ambiguous! ./search-location.sh "Malmö Central" # Not official name ./search-location.sh "Lund station" # Not official name
Use Danish names or common alternatives.
# All work ./search-location.sh "København H" ./search-location.sh "Nørreport" ./search-location.sh "Copenhagen Airport" ./search-location.sh "Köpenhamn"
User: "How do I get from Malmö C to Lund C?"
./search-location.sh "Malmö C" ./search-location.sh "Lund C" ./journey.sh 9021012080000000 STOP_AREA 9021012080040000 STOP_AREA
Response:
🏠 **Leave now** from Malmö C📍 Malmö C → 🎯 Lund C 🚂 Öresundståg 1324 departs 09:04 [🛤️ Spår 2b] 🏁 Arrives 09:16 at Lund C [🛤️ Spår 1]
⏱️ Total: 12 min | ✅ Direct, no changes
User: "I need to go from Kalendegatan 12 in Malmö to Emporia"
./search-location.sh "Kalendegatan 12, Malmö" ./search-location.sh "Emporia" ./journey.sh "55.595#13.001" LOCATION "55.563#12.973" LOCATION
Response:
🏠 **Leave at 10:05**🚶 Walk 320m to Möllevångstorget (~3 min)
📍 Möllevångstorget → 🎯 Emporia 🚌 Bus 32 departs 10:10 🏁 Arrives 10:28 at Emporia
🚶 Walk 150m to destination (~2 min)
⏱️ Total: 25 min
User: "I need to be at Copenhagen central by 18:00 tomorrow"
./search-location.sh "Malmö C" ./search-location.sh "København H" ./journey.sh 9021012080000000 STOP_AREA 9921000008600626 STOP_AREA "tomorrow 18:00" arrive
Response:
🎯 **Arrive by 18:00** at København H📍 Malmö C → 🎯 København H 🚂 Öresundståg departs 17:21 [🛤️ Spår 1] 🏁 Arrives 17:56 ✅ 4 min buffer
⏱️ Journey: 35 min
💡 Leave Malmö C by 17:21 to arrive on time!
User: "I want to travel to Lund around 15:00"
# Query 30 min earlier to show options around 15:00 ./journey.sh 9021012080000000 STOP_AREA 9021012080040000 STOP_AREA "14:30"
Response:
Options around 15:00 for Malmö C → Lund C:Option 1 - Depart 14:34 (in 25m) 🚂 Pågatåg → arrives 14:52 ⏱️ 18 min
Option 2 - Depart 14:49 (in 40m) 🚂 Öresundståg → arrives 15:01 ⏱️ 12 min
Option 3 - Depart 15:04 (in 55m) ✅ Closest to 15:00 🚂 Pågatåg → arrives 15:22 ⏱️ 18 min
Which works best for you?
User: "I want to leave in about an hour"
# Current time: 13:00, so query for 14:00 ./journey.sh ... "14:00"
Response:
Options departing around 14:00 (in ~1h):Leave at 13:55 (in 55m) 🚶 5 min walk → 🚌 Bus 5 at 14:02 → arrives 14:25
Leave at 14:10 (in 1h 10m) 🚶 5 min walk → 🚂 Train at 14:17 → arrives 14:35
Let me know which one works!
When tool output shows delays:
From: 14:30 Malmö C [+8 min late]
Response:
📍 **Malmö C** → 🎯 **Lund C** 🚂 Öresundståg 1042 ⚠️ **Running 8 min late** 🕐 Scheduled: 14:30 → Expected: ~14:38 🏁 Arrives ~14:50 (normally 14:42)
Always ask when:
Search returns no results:
Multiple plausible matches:
Result name very different from query:
User request is vague:
Cross-border ambiguity:
Time is unclear:
All times are Swedish local time (CET/CEST).
| Format | Example | Meaning |
|---|---|---|
| (empty) | Travel now | |
| | Today at 18:30 |
| | Tomorrow at 09:00 |
| | Specific date |
══════════════════════════════════════════════════════════════ OPTION 1: Malmö C → Lund C ══════════════════════════════════════════════════════════════ Date: 2026-01-14 Depart: 09:04 Arrive: 09:16 Changes: 0LEGS: → ORESUND Öresundståg 1324 From: 09:04 Malmö C [Spår 2b] To: 09:16 Lund C [Spår 1] Direction: mot Helsingborg C
| Type | Emoji | Description |
|---|---|---|
| 🚂 | Pågatåg (regional train) |
| 🚂 | Öresundståg (cross-border train) |
| 🚌 | City or regional bus |
| 🚶 | Walking segment |
| 🚋 | Tram/light rail |
| 🚇 | Copenhagen Metro |
| ⛴️ | Ferry |
| Indicator | Emoji | Meaning |
|---|---|---|
| (none) | ✅ | On time |
| ⚠️ | Delayed |
| ℹ️ | Running early |
| ❌ | Already departed |
| 🚨 | Service disruption |
The search returned no results.
Strategies:
No routes available.
Strategies:
| Location Type | Search Format | Journey Type |
|---|---|---|
| Train station | | STOP_AREA |
| Bus stop | | STOP_AREA |
| Address | | Use coords → LOCATION |
| Landmark/POI | (no city!) | Use coords → LOCATION |
| Coordinates | | LOCATION |
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.