Code Monkey home page Code Monkey logo

tratimetabledata's People

Contributors

carolhsu avatar clkao avatar dependabot[bot] avatar depickeresven avatar hcchien avatar louisom avatar repeat avatar

Watchers

 avatar

tratimetabledata's Issues

Not all mainroute codes are correct

By example this one:
It departures from Yuanlin and ends in Hualien
But it passes Taipei so the MainRouteCode should be -1 instead of 1

    "Type": "0",
    "Train": "278",
    "BreastFeed": "Y",
    "Route": "",
    "Package": "N",
    "OverNightStn": "0",
    "LineDir": "0",
    "Line": "2",
    "Dinning": "N",
    "Cripple": "Y",
    "CarClass": "1102",
    "Bike": "N",
    "Note": "�����",
    "NoteEng": "Runs Daily.Accessible Car.Taroko.",
    "TimeInfos": {
      "1003": {
        "Station": "1003",
        "Order": "16",
        "DepTime": "09:40:00",
        "ArrTime": "09:38:00",
        "Routes": [
          1
        ]
      },
      "1007": {
        "Station": "1007",
        "Order": "15",
        "DepTime": "09:27:00",
        "ArrTime": "09:26:00",
        "Routes": [
          1
        ]
      },
      "1008": {
        "Station": "1008",
        "Order": "14",
        "DepTime": "09:20:00",
        "ArrTime": "09:16:00",
        "Routes": [
          1
        ]
      },
      "1011": {
        "Station": "1011",
        "Order": "13",
        "DepTime": "09:08:00",
        "ArrTime": "09:06:00",
        "Routes": [
          1
        ]
      },
      "1015": {
        "Station": "1015",
        "Order": "12",
        "DepTime": "08:50:00",
        "ArrTime": "08:48:00",
        "Routes": [
          1
        ]
      },
      "1017": {
        "Station": "1017",
        "Order": "11",
        "DepTime": "08:41:00",
        "ArrTime": "08:40:00",
        "Routes": [
          1
        ]
      },
      "1025": {
        "Station": "1025",
        "Order": "10",
        "DepTime": "08:18:00",
        "ArrTime": "08:17:00",
        "Routes": [
          1,
          4
        ]
      },
      "1028": {
        "Station": "1028",
        "Order": "9",
        "DepTime": "08:05:00",
        "ArrTime": "08:03:00",
        "Routes": [
          1,
          2
        ]
      },
      "1105": {
        "Station": "1105",
        "Order": "8",
        "DepTime": "07:53:00",
        "ArrTime": "07:52:00",
        "Routes": [
          2
        ]
      },
      "1109": {
        "Station": "1109",
        "Order": "7",
        "DepTime": "07:39:00",
        "ArrTime": "07:37:00",
        "Routes": [
          2
        ]
      },
      "1110": {
        "Station": "1110",
        "Order": "6",
        "DepTime": "07:32:00",
        "ArrTime": "07:31:00",
        "Routes": [
          2
        ]
      },
      "1112": {
        "Station": "1112",
        "Order": "5",
        "DepTime": "07:23:00",
        "ArrTime": "07:21:00",
        "Routes": [
          2
        ]
      },
      "1114": {
        "Station": "1114",
        "Order": "4",
        "DepTime": "07:13:00",
        "ArrTime": "07:12:00",
        "Routes": [
          2
        ]
      },
      "1115": {
        "Station": "1115",
        "Order": "3",
        "DepTime": "07:09:00",
        "ArrTime": "07:07:00",
        "Routes": [
          2
        ]
      },
      "1120": {
        "Station": "1120",
        "Order": "2",
        "DepTime": "06:52:00",
        "ArrTime": "06:50:00",
        "Routes": [
          1,
          6,
          2
        ]
      },
      "1203": {
        "Station": "1203",
        "Order": "1",
        "DepTime": "06:40:00",
        "ArrTime": "06:38:00",
        "Routes": [
          1,
          6
        ]
      },
      "1715": {
        "Station": "1715",
        "Order": "19",
        "DepTime": "11:32:00",
        "ArrTime": "11:30:00",
        "Routes": [
          1
        ]
      },
      "1820": {
        "Station": "1820",
        "Order": "17",
        "DepTime": "10:31:00",
        "ArrTime": "10:29:00",
        "Routes": [
          1
        ]
      },
      "1823": {
        "Station": "1823",
        "Order": "18",
        "DepTime": "10:39:00",
        "ArrTime": "10:37:00",
        "Routes": [
          1
        ]
      }
    },
    "StartStation": 1203,
    "StartTime": "06:40:00",
    "EndStation": 1715,
    "EndTime": "11:32:00",
    "Stations": {},
    "Routes": [
      1,
      6,
      2,
      4
    ],
    "mainRoute": 1,
    "MultiRoute": true,
    "timeDifference": -8700000,
    "travelTime": 3780000
  },```

Station names are to long

The Science and Technology Museum
change to
Science & Tech. Museum

Chang Jung Christian University

change to
Chang Jung Christ. University

New kind of train type - 110H

Different train types [ { CarClass: '110H',
    Train: '439',
    Note:
     '每日行駛。本列次不發售無座票,非持本班次車票旅客,請勿搭乘。 第6節為騰雲座艙,為本局公告指定不發售無座位車票之車廂,持當日當次騰雲座艙車票旅客始可搭乘。' } ]
!!!!!!!!!!!!!!!!!!!!Specials!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Can't parse certain files

TypeError: Cannot read property '時刻表編號' of undefined
    at /opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:132:125
    at Array.forEach (<anonymous>)
    at /opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:128:26
    at Array.map (<anonymous>)
    at alternateData (/opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:116:29)
    at getJsonFile.then.jsonData (/opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:109:13) '20220429.json'

TypeError: Cannot read property '時刻表編號' of undefined
    at /opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:132:125
    at Array.forEach (<anonymous>)
    at /opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:128:26
    at Array.map (<anonymous>)
    at alternateData (/opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:116:29)
    at getJsonFile.then.jsonData (/opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:109:13) '20220427.json'

TypeError: Cannot read property '時刻表編號' of undefined
    at /opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:132:125
    at Array.forEach (<anonymous>)
    at /opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:128:26
    at Array.map (<anonymous>)
    at alternateData (/opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:116:29)
    at getJsonFile.then.jsonData (/opt/TaiwanRailway/TRATimetableData/UpdateJsonStructuresForBetterSearching.js:109:13) '20220428.json'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.