mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
18 lines
809 B
Markdown
18 lines
809 B
Markdown
|
# DART profile for `hafas-client`
|
|||
|
|
|||
|
[*Des Moines Area Rapid Transit (DART)*](https://en.wikipedia.org/wiki/Des_Moines_Area_Regional_Transit) is the local transport provider of [Des Moines](https://en.wikipedia.org/wiki/Des_Moines_metropolitan_area), Iowa, USA. This profile adds *DART* support to `hafas-client`.
|
|||
|
|
|||
|
*Note:* This profile *does not* support [*Dallas Area Rapid Transit (DART)*](https://de.wikipedia.org/wiki/Verkehrsverbund_Vorarlberg) in [Dallas–Fort Worth](https://en.wikipedia.org/wiki/Dallas–Fort_Worth_metroplex), Texas, USA.
|
|||
|
|
|||
|
## Usage
|
|||
|
|
|||
|
```js
|
|||
|
const createClient = require('hafas-client')
|
|||
|
const dartProfile = require('hafas-client/p/dart')
|
|||
|
|
|||
|
// create a client with DART profile
|
|||
|
const client = createClient(dartProfile, 'my-awesome-program')
|
|||
|
```
|
|||
|
|
|||
|
Check out the [code examples](example.js).
|