Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amend gmb service type caused by decription_tc with spaces around 正常班次 at source #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

desmondlsl
Copy link
Contributor

around 25 routes and 45 route-service_type-bounds are affected

Example:

{
    "type": "Route",
    "version": "1.0",
    "generated_timestamp": "2025-01-01T00:00:00.000+08:00",
    "data": [
        {
            "route_id": 2002317,
            "region": "HKI",
            "route_code": "18M",
            "description_tc": "正常班次 ", // Note the extra space after 正常班次
            "description_sc": "正常班次 ",
            "description_en": "Normal Route",
            "directions": [
                {...},
                {...}
            ],
            "data_timestamp": "2024-04-04T17:54:14.825+08:00"
        }
    ]
}

routeList.gmb.json

{
    "gtfsId": "2002317",
    "route": "18M",
    "orig_tc": "柴灣站",
    "orig_en": "Chai Wan Station",
    "dest_tc": "歌連臣角(懲教所)",
    "dest_en": "Cape Collinson (Correctional Institution)",
    "bound": "O",
    "service_type": 2, // Before: 2; After: 1
    "stops": [
      "20000103",
      "20003431",
      "20009700",
      "20003432",
      "20003433",
      "20000104"
    ],
    "freq": {
      "127": { "0800": null, "1230": null, "1645": null },
      "111": { "1000": null, "1500": null }
    }
  },
  {
    "gtfsId": "2002317",
    "route": "18M",
    "orig_tc": "歌連臣角(懲教所)",
    "orig_en": "Cape Collinson (Correctional Institution)",
    "dest_tc": "柴灣站",
    "dest_en": "Chai Wan Station",
    "bound": "I",
    "service_type": 3, // Before: 3; After: 1
    "stops": ["20000104", "20003434", "20003435", "20003436", "20000103"],
    "freq": {
      "127": { "0815": null, "1245": null, "1700": null },
      "111": { "1015": null, "1515": null }
    }
  },

…次 at source

around 25 routes and 45 route-service_type-bounds are affected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant