diff --git a/pbf/index.js b/pbf/index.js index 3ab1eef..99e4061 100644 --- a/pbf/index.js +++ b/pbf/index.js @@ -33,6 +33,9 @@ async function run() { let entityVhclCount=0; let entityTrpCount=0; let entityTrpTrpCount=0; + let entityTrpTrpTrpIdCount=0; + let entityTrpTrpRtIdCount=0; + let entityTrpTrpRtId_Count=0; let entityTrpVhclCount=0; let entityTrpStuCount=0; let entityAlrtCount=0; @@ -62,6 +65,23 @@ async function run() { if(trip){ entityTrpTrpCount++; const {trip_id,route_id,direction_id,start_time,start_date,schedule_relationship}=trip; + if(trip_id){ + entityTrpTrpTrpIdCount++; + if(entityTrpTrpTrpIdCount % 100 == 0){ + debug('route_id: '+route_id); + debug('trip_id: '+trip_id); + } + } + if(route_id){ + entityTrpTrpRtIdCount++; + if(!/[^a-z]/i.test(route_id)){ + debug('This is ODD!'); + debug('route_id: '+route_id); + debug('trip_id: '+trip_id); + }else if(route_id.includes("_")){ + entityTrpTrpRtId_Count++; + } + } } if(vehicle){ entityTrpVhclCount++; @@ -81,6 +101,9 @@ async function run() { debug('entityVhclCount: '+entityVhclCount); debug('entityTrpCount: '+entityTrpCount); debug('entityTrpTrpCount: '+entityTrpTrpCount); + debug('entityTrpTrpTrpIdCount: '+entityTrpTrpTrpIdCount); + debug('entityTrpTrpRtIdCount: '+entityTrpTrpRtIdCount); + debug('entityTrpTrpRtId_Count: '+entityTrpTrpRtId_Count); debug('entityTrpVhclCount: '+entityTrpVhclCount); debug('entityTrpStuCount: '+entityTrpStuCount); debug('entityAlrtCount: '+entityAlrtCount);