import * as dvb from "dvbjs" ; const origin = "33000742" ; const destination = "33000037" ; const startTime = new Date ( ) ; const isArrivalTime = false ; dvb . route ( origin , destination , startTime , isArrivalTime ) . then ( ( data ) => { console . dir ( data , { depth : 7 , maxArrayLength : 2 } ) ; } ) ;