Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/db-stops-search
Search through all stops/stations known by Deutsche Bahn's HAFAS API.
https://github.com/derhuerst/db-stops-search
deutsche-bahn public-transport search transit
Last synced: 6 days ago
JSON representation
Search through all stops/stations known by Deutsche Bahn's HAFAS API.
- Host: GitHub
- URL: https://github.com/derhuerst/db-stops-search
- Owner: derhuerst
- License: isc
- Created: 2022-09-18T20:08:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T13:43:45.000Z (about 2 years ago)
- Last Synced: 2024-10-03T23:55:33.015Z (about 1 month ago)
- Topics: deutsche-bahn, public-transport, search, transit
- Language: JavaScript
- Homepage:
- Size: 928 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# db-stops-search
**Search through all [stops/stations known by Deutsche Bahn's HAFAS API](https://npmjs.com/package/db-hafas-stations).**
[![npm version](https://img.shields.io/npm/v/db-stops-search.svg)](https://www.npmjs.com/package/db-stops-search)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/db-stops-search.svg)
![minimum Node.js version](https://img.shields.io/node/v/db-stops-search.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)Formats and imports the stops into a [Meilisearch](https://meilisearch.com) instance.
## Installation
```shell
npm install -g db-stops-search
```Or use [`npx`](https://npmjs.com/package/npx). ✨
## Usage
First, configure & run a [Meilisearch](https://meilisearch.com) instance.
Then use `db-stops-search` to import data into it:
```shell
# configure how to connect to Meilisearch (optional):
export MEILISEARCH_URL="https://my-meilisearch-instance.example.org"
# configure the name of the search index to create (defaults to "db-stops-search"):
export MEILISEARCH_INDEX="db-stops-2022-08-17"# import the data into Meilisearch
npx db-stops-search
```The import process might look like this:
[![asciicast demo of the import process](https://asciinema.org/a/522158.svg)](https://asciinema.org/a/522158)
If it succeeded and you're not running Meilisearch in production mode, you can access its [search preview](https://docs.meilisearch.com/learn/what_is_meilisearch/search_preview.html) in the browser:
![demo video of Meilisearch's search preview with db-stops-search data](docs/demo.mov)
## Contributing
If you have a question or need support using `db-stops-search`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use [the issues page](https://github.com/derhuerst/db-stops-search/issues).