<commit_before># vbb-rest

***vbb-rest* is a public transport REST API**, a clean alternative to the [VBB HAFAS API](https://github.com/derhuerst/vbb-hafas). [It has lots of advantages over theirs.](docs/why.md)

**[API documentation](docs/index.md)**

~~Use [`vbb-client@3`](https://github.com/derhuerst/vbb-client) for querying this API in browsers or with Node.~~ VBB has blocked our API servers' IP addresses, so we can't provide a public endpoint for now. **If you use JavaScript to process the data, use [`vbb-hafas`](https://github.com/derhuerst/vbb-hafas) directly, otherwise host your `vbb-rest` instance for now.**

![vbb-rest architecture diagram](https://rawgit.com/derhuerst/vbb-rest/master/architecture.svg)<commit_msg>more helpful info about the public endpoint :memo:<commit_after># vbb-rest

***vbb-rest* is a public transport REST API**, a clean alternative to the [VBB HAFAS API](https://github.com/derhuerst/vbb-hafas). [It has lots of advantages over theirs.](docs/why.md)

~~Use [`vbb-client@3`](https://github.com/derhuerst/vbb-client) for querying this API in browsers or with Node.~~ VBB has blocked our API servers' IP addresses, so **[the public `2.vbb.transport.rest` endpoint](https://2.vbb.transport.rest/) [is down](https://status.transport.rest/779961406)**. For the time being, you have two choices:

- Use the [`1.bvg.transport.rest`](https://1.bvg.transport.rest/) endpoint. It returns data from the BVG HAFAS API, which is almost exactly the same. Check the docs at [`derhuerst/bvg-rest`](https://github.com/derhuerst/bvg-rest/blob/master/readme.md)!
- Host your `vbb-rest` instance. See below for instructions.

![vbb-rest architecture diagram](https://rawgit.com/derhuerst/vbb-rest/master/architecture.svg)
{'fraction_non_alphanumeric': 0.1473623853211009, 'fraction_numerical': 0.008600917431192661, 'mean_word_length': 4.855704697986577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6996023', 'n_tokens_mistral': 593, 'n_tokens_neox': 567, 'n_words': 173}