<commit_before># Node-GTFS

[![NPM version](https://img.shields.io/npm/v/gtfs.svg?style=flat)](https://www.npmjs.com/package/gtfs)
[![David](https://img.shields.io/david/brendannee/node-gtfs.svg)]()
[![npm](https://img.shields.io/npm/dm/gtfs.svg?style=flat)]()

`node-GTFS` loads transit data in [GTFS format](https://developers.google.com/transit/), unzips it and stores it to a MongoDB database. In addition, it provides some methods to query for agencies, routes, stops and times.  It also has spatial queries to find nearby stops, routes and agencies.

## Setup

You can clone from github:

    git clone <EMAIL>:brendannee/node-gtfs.git

    cd node-gtfs

    npm install<commit_msg>Added gtfs-to-html example app<commit_after># Node-GTFS

[![NPM version](https://img.shields.io/npm/v/gtfs.svg?style=flat)](https://www.npmjs.com/package/gtfs)
[![David](https://img.shields.io/david/brendannee/node-gtfs.svg)]()
[![npm](https://img.shields.io/npm/dm/gtfs.svg?style=flat)]()

`node-GTFS` loads transit data in [GTFS format](https://developers.google.com/transit/), unzips it and stores it to a MongoDB database. In addition, it provides some methods to query for agencies, routes, stops and times.  It also has spatial queries to find nearby stops, routes and agencies.

## Example Application

The [GTFS-to-HTML](https://github.com/brendannee/gtfs-to-html) app uses node-gtfs for downloading and querying GTFS data. It provides a good example of how to use this library.

## Setup

You can clone from github:

    git clone <EMAIL>:brendannee/node-gtfs.git

    cd node-gtfs

    npm install
{'fraction_non_alphanumeric': 0.14231974921630094, 'fraction_numerical': 0.0, 'mean_word_length': 4.337792642140468, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3966181', 'n_tokens_mistral': 566, 'n_tokens_neox': 534, 'n_words': 148}