public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
274 stars 53 forks source link

DB: fix operators #10

Closed derhuerst closed 1 year ago

derhuerst commented 6 years ago

The DB API returns operators such as Nahreisezug.

derhuerst commented 4 years ago

In Hamburg:

{
    "type": "line",
    "id": "7-hvv001-1",
    "fahrtNr": "140",
    "name": "U 1",
    "public": true,
    "mode": "train",
    "product": "subway",
    "operator": {
        "type": "operator",
        "id": "nahreisezug",
        "name": "Nahreisezug"
    }
}
{
    "type": "line",
    "id": "5-hvvhha-5",
    "fahrtNr": "6287",
    "name": "Bus 5",
    "public": true,
    "mode": "bus",
    "product": "bus",
    "operator": {
        "type": "operator",
        "id": "nahreisezug",
        "name": "Nahreisezug"
    }
}
derhuerst commented 1 year ago

Closing this, as AFAICT it can't be fixed without a list of affected lines, which would incur significant long-term maintenance.