Skip to content

Latest commit

 

History

History

tpg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

TPG profile for hafas-client

Transports publics genevois (TPG) is the local transport provider of the Canton of Geneva. This profile adds TPG support to hafas-client.

Usage

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

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

// create a client with TPG profile
const client = createClient(tpgProfile, userAgent)

Check out the code examples.