db-stops-search
v1.1.0
Published
Search through all stops/stations known by Deutsche Bahn's HAFAS API.
Downloads
13
Maintainers
Readme
db-stops-search
Search through all stops/stations known by Deutsche Bahn's HAFAS API.
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:
If it succeeded and you're not running Meilisearch in production mode, you can access its search preview in the browser:
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.