# hafas-find-stations

> Given a HAFAS client, find all stations in a bounding box.

Latest version **2.1.0** (published 2020-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install hafas-find-stations
pnpm add hafas-find-stations
yarn add hafas-find-stations
bun add hafas-find-stations
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2020-03-20 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 9 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | hafas, public transport, transit, stations |

## Links

- npm: https://www.npmjs.com/package/hafas-find-stations
- Repository: https://github.com/derhuerst/hafas-find-stations
- Issues: https://github.com/derhuerst/hafas-find-stations/issues
- npm.io page: https://npm.io/package/hafas-find-stations

## Dependencies (9)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [p-queue](https://npm.io/package/p-queue.md) ^6.2.0
- [@turf/bbox](https://npm.io/package/@turf/bbox.md) ^6.0.1
- [@turf/buffer](https://npm.io/package/@turf/buffer.md) ^5.1.5
- [@turf/distance](https://npm.io/package/@turf/distance.md) ^6.0.1
- [@turf/point-grid](https://npm.io/package/@turf/point-grid.md) ^6.0.1
- [@turf/destination](https://npm.io/package/@turf/destination.md) ^6.0.1
- [@turf/center-of-mass](https://npm.io/package/@turf/center-of-mass.md) ^6.0.1
- [@turf/boolean-point-in-polygon](https://npm.io/package/@turf/boolean-point-in-polygon.md) ^6.0.1

## Recent versions

- 2.1.0 (latest) — 2020-03-20
- 2.0.0 — 2020-03-19
- 1.1.0 — 2019-10-16
- 1.0.0 — 2019-10-16

## README

# hafas-find-stations

**Given a [`hafas-client@5`](https://github.com/public-transport/hafas-client/tree/5) client, find all stations in a bounding box.**

[![npm version](https://img.shields.io/npm/v/hafas-find-stations.svg)](https://www.npmjs.com/package/hafas-find-stations)
[![build status](https://api.travis-ci.org/derhuerst/hafas-find-stations.svg?branch=master)](https://travis-ci.org/derhuerst/hafas-find-stations)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/hafas-find-stations.svg)
![minimum Node.js version](https://img.shields.io/node/v/hafas-find-stations.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)


## Installation

```shell
npm install hafas-find-stations
```


## Usage

```js
const createHafas = require('hafas-client')
const vbbProfile = require('hafas-client/p/vbb')
const findStations = require('hafas-find-stations')

const bbox = {
	north: 52.53,
	west: 13.36,
	south: 52.51,
	east: 13.41
}

const hafas = createHafas(vbbProfile, 'hafas-find-stations example')

findStations(hafas, bbox, {concurrency: 1}, (err, station) => {
	if (err) console.error(err)
	if (station) console.log(station.id + '\t' + station.name)
})
.catch(console.error)
```


## Contributing

If you have a question or need support using `hafas-find-stations`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/hafas-find-stations/issues).

---
_Source: https://npm.io/package/hafas-find-stations · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
