├── .eslintrc.json ├── .gitignore ├── .husky └── pre-commit ├── .npmrc ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── config-sample-bayarea.json ├── config-sample.json ├── docs └── images │ └── gtfs-to-geojson-logo.svg ├── examples ├── convex.geojson ├── convex.png ├── envelope.geojson ├── envelope.png ├── lines-and-stops.geojson ├── lines-and-stops.png ├── lines-buffer.geojson ├── lines-buffer.png ├── lines-dissolved.geojson ├── lines-dissolved.png ├── lines.geojson ├── lines.png ├── stops-buffer.geojson ├── stops-buffer.png ├── stops-dissolved.geojson ├── stops-dissolved.png ├── stops.geojson └── stops.png ├── package.json ├── src ├── bin │ └── gtfs-to-geojson.ts ├── index.ts ├── lib │ ├── file-utils.ts │ ├── formats │ │ ├── convex.ts │ │ ├── envelope.ts │ │ ├── lines-and-stops.ts │ │ ├── lines-buffer.ts │ │ ├── lines-dissolved.ts │ │ ├── lines.ts │ │ ├── stops-buffer.ts │ │ ├── stops-dissolved.ts │ │ └── stops.ts │ ├── formatters.ts │ ├── geojson-utils.ts │ ├── gtfs-to-geojson.ts │ └── log-utils.ts └── types │ ├── global_interfaces.ts │ └── sqlstring-sqlite.d.ts ├── tsconfig.json └── tsup.config.ts /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/README.md -------------------------------------------------------------------------------- /config-sample-bayarea.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/config-sample-bayarea.json -------------------------------------------------------------------------------- /config-sample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/config-sample.json -------------------------------------------------------------------------------- /docs/images/gtfs-to-geojson-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/docs/images/gtfs-to-geojson-logo.svg -------------------------------------------------------------------------------- /examples/convex.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/convex.geojson -------------------------------------------------------------------------------- /examples/convex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/convex.png -------------------------------------------------------------------------------- /examples/envelope.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/envelope.geojson -------------------------------------------------------------------------------- /examples/envelope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/envelope.png -------------------------------------------------------------------------------- /examples/lines-and-stops.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines-and-stops.geojson -------------------------------------------------------------------------------- /examples/lines-and-stops.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines-and-stops.png -------------------------------------------------------------------------------- /examples/lines-buffer.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines-buffer.geojson -------------------------------------------------------------------------------- /examples/lines-buffer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines-buffer.png -------------------------------------------------------------------------------- /examples/lines-dissolved.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines-dissolved.geojson -------------------------------------------------------------------------------- /examples/lines-dissolved.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines-dissolved.png -------------------------------------------------------------------------------- /examples/lines.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines.geojson -------------------------------------------------------------------------------- /examples/lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/lines.png -------------------------------------------------------------------------------- /examples/stops-buffer.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/stops-buffer.geojson -------------------------------------------------------------------------------- /examples/stops-buffer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/stops-buffer.png -------------------------------------------------------------------------------- /examples/stops-dissolved.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/stops-dissolved.geojson -------------------------------------------------------------------------------- /examples/stops-dissolved.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/stops-dissolved.png -------------------------------------------------------------------------------- /examples/stops.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/stops.geojson -------------------------------------------------------------------------------- /examples/stops.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/examples/stops.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/package.json -------------------------------------------------------------------------------- /src/bin/gtfs-to-geojson.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/bin/gtfs-to-geojson.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './lib/gtfs-to-geojson.js'; 2 | -------------------------------------------------------------------------------- /src/lib/file-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/file-utils.ts -------------------------------------------------------------------------------- /src/lib/formats/convex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/convex.ts -------------------------------------------------------------------------------- /src/lib/formats/envelope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/envelope.ts -------------------------------------------------------------------------------- /src/lib/formats/lines-and-stops.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/lines-and-stops.ts -------------------------------------------------------------------------------- /src/lib/formats/lines-buffer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/lines-buffer.ts -------------------------------------------------------------------------------- /src/lib/formats/lines-dissolved.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/lines-dissolved.ts -------------------------------------------------------------------------------- /src/lib/formats/lines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/lines.ts -------------------------------------------------------------------------------- /src/lib/formats/stops-buffer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/stops-buffer.ts -------------------------------------------------------------------------------- /src/lib/formats/stops-dissolved.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/stops-dissolved.ts -------------------------------------------------------------------------------- /src/lib/formats/stops.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/formats/stops.ts -------------------------------------------------------------------------------- /src/lib/formatters.ts: -------------------------------------------------------------------------------- 1 | export function msToSeconds(ms) { 2 | return Math.round(ms / 1000); 3 | } 4 | -------------------------------------------------------------------------------- /src/lib/geojson-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/geojson-utils.ts -------------------------------------------------------------------------------- /src/lib/gtfs-to-geojson.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/gtfs-to-geojson.ts -------------------------------------------------------------------------------- /src/lib/log-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/lib/log-utils.ts -------------------------------------------------------------------------------- /src/types/global_interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/src/types/global_interfaces.ts -------------------------------------------------------------------------------- /src/types/sqlstring-sqlite.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'sqlstring-sqlite'; 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlinkTagInc/gtfs-to-geojson/HEAD/tsup.config.ts --------------------------------------------------------------------------------