← 返回
未分类 中文

Entur Travel

Plan public transit trips in Norway using the Entur API. Covers all operators (Vy, Ruter, Kolumbus, etc.), all modes (bus, rail, tram, metro, ferry, coach)....
使用Entur API规划挪威的公共交通出行,覆盖所有运营商(Vy、Ruter、Kolumbus等)及所有交通方式(公交、铁路、有轨电车、地铁、渡轮、长途客车)。
mmichelli mmichelli 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 274
下载
💾 2
安装
1
版本
#latest

概述

Entur Travel

Plan public transit journeys across Norway via the Entur Journey Planner API. Covers every operator and mode — bus, rail, tram, metro, ferry, coach, air — with real-time data.

No API key required. Free, open API under NLOD licence.

Script

scripts/entur.py — standalone Python 3 CLI, no dependencies beyond stdlib.

Commands

# Search for stops/places
python3 scripts/entur.py search "Oslo S"

# Plan a trip (place names auto-resolve via geocoder)
python3 scripts/entur.py trip "Porsgrunn" "Oslo lufthavn"

# Plan with specific departure time
python3 scripts/entur.py trip "Bergen" "Stavanger" --time "2025-03-01T08:00:00"

# Arrive by a specific time
python3 scripts/entur.py trip "Drammen" "Oslo S" --time "2025-03-01T09:00:00" --arrive

# Filter by mode
python3 scripts/entur.py trip "Tromsø" "Harstad" --modes water

# Departure board for a stop
python3 scripts/entur.py departures "NSR:StopPlace:58966" --limit 5

# Stop details (quays, platforms)
python3 scripts/entur.py stop "NSR:StopPlace:58966"

All output is JSON.

Modes

Valid transport modes for --modes: bus, rail, tram, metro, water, air, coach

Common Stop IDs

Use search to find IDs. Some common ones:

  • Oslo S: NSR:StopPlace:59872
  • Oslo lufthavn (Gardermoen): NSR:StopPlace:269
  • Bergen stasjon: NSR:StopPlace:585
  • Trondheim S: NSR:StopPlace:41742

Presenting Results

When presenting trip results to users:

  • Show times in local format (HH:MM), not ISO
  • Summarize legs concisely: "🚆 RE11 Porsgrunn → Torp (10:17–10:50, platform 1)"
  • Flag real-time delays: if aimed ≠ expected, mention the delay
  • For departure boards, use a compact list format
  • Include walk distances when significant (>200m)

Limitations

  • Norway only (Entur covers all Norwegian public transport)
  • No ticket purchasing — planning and real-time info only
  • Geocoder works best with Norwegian place names
  • For international trips, only the Norwegian leg is covered

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 05:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 453 📥 227,917
business-ops

Factory Floor

mmichelli
Startup coach for founders and early-stage teams. Trigger when someone mentions: "what should we focus on", "should we b
★ 1 📥 676
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 56 📥 85,057