An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# gtfs2geojson

[![CircleCI](https://circleci.com/gh/tmcw/gtfs2geojson/tree/master.svg?style=shield)](https://circleci.com/gh/tmcw/gtfs2geojson/tree/master)
[![Greenkeeper badge](https://badges.greenkeeper.io/tmcw/gtfs2geojson.svg)](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.