feat(api): add api routes stops-count-gtfs for states sh, mv, bb, be, st, nw, he, sn, th, rp, sl, by and bw

This commit is contained in:
dancingCycle 2023-08-22 10:24:38 +02:00
parent b6bff81d57
commit 6f9c070890
54 changed files with 737 additions and 9 deletions

View File

@ -16,7 +16,8 @@
"license": "GPL-3.0-or-later",
"scripts": {
"dev": "nodemon index.js",
"start": "node index.js"
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"compression": "1.7.4",

View File

@ -19,16 +19,42 @@ const STOPS_GTFS_DE_NO_GI_REFINE_ROUTER = require('./route/gtfs-stops-de-not-dhi
const STOPS_COUNT_GTFS = require('./route/stops-count-gtfs');
const STOPS_COUNT_GTFS_DE = require('./route/stops-count-gtfs-de');
const STOPS_COUNT_GTFS_DE_NO_GI = require('./route/stops-count-gtfs-de-not-dhid');
const STOPS_COUNT_GTFS_DE_HB = require('./route/stops-count-gtfs-de-hb');
const STOPS_COUNT_GTFS_DE_HB_NO_GI = require('./route/stops-count-gtfs-de-hb-not-dhid');
const STOPS_COUNT_GTFS_DE_HH = require('./route/stops-count-gtfs-de-hh');
const STOPS_COUNT_GTFS_DE_HH_NO_GI = require('./route/stops-count-gtfs-de-hh-not-dhid');
const STOPS_COUNT_GTFS_DE_NI = require('./route/stops-count-gtfs-de-ni');
const STOPS_COUNT_GTFS_DE_SH = require('./route/stops-count-gtfs-de-sh');
const STOPS_COUNT_GTFS_DE_MV = require('./route/stops-count-gtfs-de-mv');
const STOPS_COUNT_GTFS_DE_BB = require('./route/stops-count-gtfs-de-bb');
const STOPS_COUNT_GTFS_DE_BE = require('./route/stops-count-gtfs-de-be');
const STOPS_COUNT_GTFS_DE_ST = require('./route/stops-count-gtfs-de-st');
const STOPS_COUNT_GTFS_DE_NW = require('./route/stops-count-gtfs-de-nw');
const STOPS_COUNT_GTFS_DE_HE = require('./route/stops-count-gtfs-de-he');
const STOPS_COUNT_GTFS_DE_SN = require('./route/stops-count-gtfs-de-sn');
const STOPS_COUNT_GTFS_DE_TH = require('./route/stops-count-gtfs-de-th');
const STOPS_COUNT_GTFS_DE_RP = require('./route/stops-count-gtfs-de-rp');
const STOPS_COUNT_GTFS_DE_SL = require('./route/stops-count-gtfs-de-sl');
const STOPS_COUNT_GTFS_DE_BY = require('./route/stops-count-gtfs-de-by');
const STOPS_COUNT_GTFS_DE_BW = require('./route/stops-count-gtfs-de-bw');
const STOPS_COUNT_GTFS_DE_HB_NO_GI = require('./route/stops-count-gtfs-de-hb-not-dhid');
const STOPS_COUNT_GTFS_DE_HH_NO_GI = require('./route/stops-count-gtfs-de-hh-not-dhid');
const STOPS_COUNT_GTFS_DE_NI_NO_GI = require('./route/stops-count-gtfs-de-ni-not-dhid');
const STOPS_COUNT_GTFS_DE_SH_NO_GI = require('./route/stops-count-gtfs-de-sh-not-dhid');
const STOPS_COUNT_GTFS_DE_MV_NO_GI = require('./route/stops-count-gtfs-de-mv-not-dhid');
const STOPS_COUNT_GTFS_DE_BB_NO_GI = require('./route/stops-count-gtfs-de-bb-not-dhid');
const STOPS_COUNT_GTFS_DE_BE_NO_GI = require('./route/stops-count-gtfs-de-be-not-dhid');
const STOPS_COUNT_GTFS_DE_ST_NO_GI = require('./route/stops-count-gtfs-de-st-not-dhid');
const STOPS_COUNT_GTFS_DE_NW_NO_GI = require('./route/stops-count-gtfs-de-nw-not-dhid');
const STOPS_COUNT_GTFS_DE_HE_NO_GI = require('./route/stops-count-gtfs-de-he-not-dhid');
const STOPS_COUNT_GTFS_DE_SN_NO_GI = require('./route/stops-count-gtfs-de-sn-not-dhid');
const STOPS_COUNT_GTFS_DE_TH_NO_GI = require('./route/stops-count-gtfs-de-th-not-dhid');
const STOPS_COUNT_GTFS_DE_RP_NO_GI = require('./route/stops-count-gtfs-de-rp-not-dhid');
const STOPS_COUNT_GTFS_DE_SL_NO_GI = require('./route/stops-count-gtfs-de-sl-not-dhid');
const STOPS_COUNT_GTFS_DE_BY_NO_GI = require('./route/stops-count-gtfs-de-by-not-dhid');
const STOPS_COUNT_GTFS_DE_BW_NO_GI = require('./route/stops-count-gtfs-de-bw-not-dhid');
const STOPS_COUNT_ZHV = require('./route/stops-count-zhv');
@ -75,13 +101,38 @@ APP.use('/stops-count-gtfs-de',STOPS_COUNT_GTFS_DE);
APP.use('/stops-count-gtfs-de-not-dhid',STOPS_COUNT_GTFS_DE_NO_GI);
APP.use('/stops-count-gtfs-de-hb',STOPS_COUNT_GTFS_DE_HB);
APP.use('/stops-count-gtfs-de-hb-not-dhid',STOPS_COUNT_GTFS_DE_HB_NO_GI);
APP.use('/stops-count-gtfs-de-hh',STOPS_COUNT_GTFS_DE_HH);
APP.use('/stops-count-gtfs-de-hh-not-dhid',STOPS_COUNT_GTFS_DE_HH_NO_GI);
APP.use('/stops-count-gtfs-de-ni',STOPS_COUNT_GTFS_DE_NI);
APP.use('/stops-count-gtfs-de-sh',STOPS_COUNT_GTFS_DE_SH);
APP.use('/stops-count-gtfs-de-mv',STOPS_COUNT_GTFS_DE_MV);
APP.use('/stops-count-gtfs-de-bb',STOPS_COUNT_GTFS_DE_BB);
APP.use('/stops-count-gtfs-de-be',STOPS_COUNT_GTFS_DE_BE);
APP.use('/stops-count-gtfs-de-st',STOPS_COUNT_GTFS_DE_ST);
APP.use('/stops-count-gtfs-de-nw',STOPS_COUNT_GTFS_DE_NW);
APP.use('/stops-count-gtfs-de-he',STOPS_COUNT_GTFS_DE_HE);
APP.use('/stops-count-gtfs-de-sn',STOPS_COUNT_GTFS_DE_SN);
APP.use('/stops-count-gtfs-de-th',STOPS_COUNT_GTFS_DE_TH);
APP.use('/stops-count-gtfs-de-rp',STOPS_COUNT_GTFS_DE_RP);
APP.use('/stops-count-gtfs-de-sl',STOPS_COUNT_GTFS_DE_SL);
APP.use('/stops-count-gtfs-de-by',STOPS_COUNT_GTFS_DE_BY);
APP.use('/stops-count-gtfs-de-bw',STOPS_COUNT_GTFS_DE_BW);
APP.use('/stops-count-gtfs-de-hb-not-dhid',STOPS_COUNT_GTFS_DE_HB_NO_GI);
APP.use('/stops-count-gtfs-de-hh-not-dhid',STOPS_COUNT_GTFS_DE_HH_NO_GI);
APP.use('/stops-count-gtfs-de-ni-not-dhid',STOPS_COUNT_GTFS_DE_NI_NO_GI);
APP.use('/stops-count-gtfs-de-sh-not-dhid',STOPS_COUNT_GTFS_DE_SH_NO_GI);
APP.use('/stops-count-gtfs-de-mv-not-dhid',STOPS_COUNT_GTFS_DE_MV_NO_GI);
APP.use('/stops-count-gtfs-de-bb-not-dhid',STOPS_COUNT_GTFS_DE_BB_NO_GI);
APP.use('/stops-count-gtfs-de-be-not-dhid',STOPS_COUNT_GTFS_DE_BE_NO_GI);
APP.use('/stops-count-gtfs-de-st-not-dhid',STOPS_COUNT_GTFS_DE_ST_NO_GI);
APP.use('/stops-count-gtfs-de-nw-not-dhid',STOPS_COUNT_GTFS_DE_NW_NO_GI);
APP.use('/stops-count-gtfs-de-he-not-dhid',STOPS_COUNT_GTFS_DE_HE_NO_GI);
APP.use('/stops-count-gtfs-de-sn-not-dhid',STOPS_COUNT_GTFS_DE_SH_NO_GI);
APP.use('/stops-count-gtfs-de-th-not-dhid',STOPS_COUNT_GTFS_DE_TH_NO_GI);
APP.use('/stops-count-gtfs-de-rp-not-dhid',STOPS_COUNT_GTFS_DE_RP_NO_GI);
APP.use('/stops-count-gtfs-de-sl-not-dhid',STOPS_COUNT_GTFS_DE_SL_NO_GI);
APP.use('/stops-count-gtfs-de-by-not-dhid',STOPS_COUNT_GTFS_DE_BY_NO_GI);
APP.use('/stops-count-gtfs-de-bw-not-dhid',STOPS_COUNT_GTFS_DE_BW_NO_GI);
APP.use('/stops-count-zhv',STOPS_COUNT_ZHV);

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-bb-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-bb');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-be-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-be');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-bw-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-bw');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-by-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-by');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-nw-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-he');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-mv-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-mv');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-nw-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-nw');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-rp-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-rp');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-sh-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-sh');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-sl-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-sl');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-sn-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-sn');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-st-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-st');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-th-not-dhid');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,16 @@
const express = require('express');
const router = express.Router();
const stopsCount = require('../service/stops-count-gtfs-de-th');
const utils=require('../utils');
//GET listing
router.get('/', async function(req, res, next) {
try {
res.json(await stopsCount.get());
} catch (err) {
console.error(`Error while getting data: `, err.message);
res.status(err.statusCode || 500).json(utils.MSGS.error);
}
});
module.exports = router;

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_bb_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_bb;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_be_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_be;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_bw_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_bw;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_by_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_by;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_he_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_he;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_mv_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_mv;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_nw_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_nw;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_rp_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_rp;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_sh_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_sh;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_sl_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_sl;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_sn_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_sn;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_st_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_st;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_th_not_dhid;'
);
};
module.exports = {
get
};

View File

@ -0,0 +1,10 @@
const db = require('./db');
async function get(){
return await db.query(
'SELECT count(DISTINCT stop_id) FROM analysis.tbl_gtfs_stops_de_th;'
);
};
module.exports = {
get
};