db-stops-search

1.1.0 • Public • Published

db-stops-search

Search through all stops/stations known by Deutsche Bahn's HAFAS API.

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me on Twitter

Formats and imports the stops into a Meilisearch instance.

Installation

npm install -g db-stops-search

Or use npx.

Usage

First, configure & run a Meilisearch instance.

Then use db-stops-search to import data into it:

# 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

If it succeeded and you're not running Meilisearch in production mode, you can access its search preview in the browser:

demo video of Meilisearch's search preview with db-stops-search data

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.

Package Sidebar

Install

npm i db-stops-search

Weekly Downloads

6

Version

1.1.0

License

ISC

Unpacked Size

9.34 kB

Total Files

7

Last publish

Collaborators

  • derhuerst