https://github.com/node-geojson/gtfs2geojson
Convert GTFS data into GeoJSON.
https://github.com/node-geojson/gtfs2geojson
Last synced: 8 months ago
JSON representation
Convert GTFS data into GeoJSON.
- Host: GitHub
- URL: https://github.com/node-geojson/gtfs2geojson
- Owner: node-geojson
- License: isc
- Created: 2015-10-26T20:47:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T16:51:50.000Z (about 2 years ago)
- Last Synced: 2024-11-01T03:32:31.665Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 25
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-arcgis-developers - gtfs2geojson - Convert GTFS data into GeoJSON. (Data conversion tools)
README
# gtfs2geojson
[](https://circleci.com/gh/tmcw/gtfs2geojson/tree/master)
[](https://greenkeeper.io/)
Convert [GTFS](https://developers.google.com/transit/gtfs/?hl=en) data into
[GeoJSON](http://geojson.org/).
npm install --save gtfs2geojson
## API
`lines(gtfs)`
Parse GTFS shapes.txt data given as a string and return a GeoJSON FeatureCollection
of features with LineString geometries.
`stops(gtfs)`
Parse GTFS stops.txt data given as a string and return a GeoJSON FeatureCollection
of features with Point geometries.
### See also
* The [andrewharvey fork of gtfs2geojson](https://github.com/andrewharvey/gtfs2geojson) adds optimizations for large files.