22 lines
547 B
JavaScript
22 lines
547 B
JavaScript
require('dotenv').config();
|
|
const debug=require('debug')('axios');
|
|
|
|
const URL=process.env.URL||'https://tarifmatrix.vbn.de:4445/fares/info';
|
|
debug('URL: '+URL)
|
|
|
|
var axios = require('axios');
|
|
|
|
var config = {
|
|
method: 'get',
|
|
maxBodyLength: Infinity,
|
|
url: 'https://data.bus-data.dft.gov.uk/api/v1/gtfsrtdatafeed/?boundingBox=51.401,51.509,0.01,0.201&routeId=45,26&api_key=f5e9ef10f43095ce597cfa4b5c3b742475984b68'
|
|
};
|
|
|
|
axios(config)
|
|
.then(function (response) {
|
|
debug('res: '+response.data);
|
|
})
|
|
.catch(function (error) {
|
|
console.log(error);
|
|
});
|