Skip to main content

gtfs-box

gtfs-box — visor de GTFS/GTFS Realtime para ver operación en tiempo real del transporte público.

설치로 이동

소스 정보

저장소
Ntizar/NtizarBrainMasterMind
최근 소스 활동
2026년 7월 16일 08:02
감지된 SKILL.md 언어
스페인어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
gtfs-box
description
gtfs-box — visor de GTFS/GTFS Realtime para ver operación en tiempo real del transporte público.
# GTFS Box — Visor GTFS en Tiempo Real ## Qué hace [gtfs-box](https://github.com/nagix/gtfs-box) es un visor de GTFS y GTFS Realtime que permite ver la operación en tiempo real del transporte público. Ideal para dashboards de monitorización de flotas y centros de control de transporte. ## Instalación ```bash # Clonar y construir git clone https://github.com/nagix/gtfs-box.git cd gtfs-box npm install npm run build ``` ## Uso básico ```bash # Iniciar visor con feed GTFS + GTFS-RT gtfs-box --gtfs feed.zip --rt-url "https://example.com/rt" --port 3000 # Con opciones de mapa gtfs-box --gtfs feed.zip --rt-url "https://example.com/rt" \ --map-style osm \ --center 40.4168,-3.7038 \ --zoom 12 ``` ```javascript // Integración como librería import { GTFSBox } from 'gtfs-box'; const viewer = new GTFSBox({ container: '#map-container', gtfs: 'feed.zip', realtime: { url: 'https://example.com/rt', format: 'gtfs-rt' } }); viewer.on('vehicle-update', (vehicle) => { console.log(`Vehicle ${vehicle.id} at ${vehicle.lat},${vehicle.lng}`); }); ``` ## Pitfalls - Necesita un servidor GTFS Realtime compatible (GTFS-RT protocol) - El rendimiento puede degradarse con feeds muy grandes (>1000 vehículos) - No incluye análisis de frecuencias ni stringlines (usar `gtfs-to-chart` para eso) - Depende de Leaflet/Mapbox para el mapa base ## Referencias - Repo: https://github.com/nagix/gtfs-box - Relacionado: `node-gtfs`, `onebusaway-gtfs-realtime-visualizer`, `transit-data-pipelines`
GitHub에서 보기