bahnui/back/node_modules/hafas-client/p/dart
2024-11-15 23:23:46 +01:00
..
base.json Initial commit 2024-11-15 23:23:46 +01:00
example.js Initial commit 2024-11-15 23:23:46 +01:00
index.js Initial commit 2024-11-15 23:23:46 +01:00
readme.md Initial commit 2024-11-15 23:23:46 +01:00

DART profile for hafas-client

Des Moines Area Rapid Transit (DART) is the local transport provider of Des Moines, Iowa, USA. This profile adds DART support to hafas-client.

Note: This profile does not support Dallas Area Rapid Transit (DART) in DallasFort Worth, Texas, USA.

Usage

import {createClient} from 'hafas-client'
import {profile as dartProfile} from 'hafas-client/p/dart/index.js'

const userAgent = 'link-to-your-project-or-email' // adapt this to your project!

// create a client with DART profile
const client = createClient(dartProfile, userAgent)

Check out the code examples.