constdirectionsToGeoJson=require('directions-to-geojson')constopts={apiKey: GOOGLE_MAP_API_KEY,// Google Maps API keystroke: '#ff1800',// Color of linefileName: './test/datafile.geojson',// The outputorigin: 'New Orleans, Louisiana',// Starting location of the directionsdestination: 'Manhattan, New York, NY',// The destination of the directionswaypoints: [// The locations between the beginning and destination'Oak Ridge, Tennessee','Philadelphia, Pennsylvania']}directionsToGeoJson(opts)