feat: adjust app/utils/gtfs.js

This commit is contained in:
dancingCycle 2023-12-21 08:10:38 +01:00
parent 97fd79ddaa
commit ba428f5c15
2 changed files with 23 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import GtfsFile from './gtfs-file';
import gtfs from '../utils/gtfs';
const GtfsFiles = () => {
//TODO Do we have to call an API for each and every dataset file?
return (
<>
<Container>

View File

@ -3,6 +3,7 @@
* https://gtfs.org/schedule/reference/
* on Jul 7th 2023
*/
/*
const datasetFiles = [
'agency',
'stops',
@ -28,6 +29,27 @@ const datasetFiles = [
'feed_info',
'attributions'
];
*/
//TODO Can we update the API to match this GTFS statis reference?
const datasetFiles = [
'agency',
'attributions',
'calendar',
'calendar_dates',
'fare_attributes',
'fare_rules',
'feed_info',
'frequencies',
'levels',
'pathways',
'routes',
'shapes',
'stop_times',
'stops',
'transfers',
'translations',
'trips'
];
module.exports = {
datasetFiles