mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
17 lines
812 B
Markdown
17 lines
812 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
|
||
import {createClient} from 'hafas-client'
|
||
import {dartProfile} from 'hafas-client/p/dart/index.js'
|
||
|
||
// create a client with DART profile
|
||
const client = createClient(dartProfile, 'my-awesome-program')
|
||
```
|
||
|
||
Check out the [code examples](example.js).
|