Jannis R
Jannis R
VBB: ```json { "pid": "L::3::Bus::B1090519025::Bus_1090519025_S5X::*", "name": "S5X", "nameS": "S5X", "number": "S5X", "icoX": 1, "cls": 8, "oprX": 0, "prodCtx": { "name": " S5X", "num": "926", "line": "S5X", "matchId": "65150", "catOut": "Bus...
```shell ./tools/debug-cli/cli.js vbb departures 900000013101 '{duration: 120}' | jq '.[] | [.tripId, .direction, .line]' ``` ```json [ "1|13648|0|86|19102020", "Grunewald, Roseneck", { "type": "line", "id": "m29", "fahrtNr": "24790", "name": "M29", "public":...
This response has a `res.globMsgL` list. These are usually displayed at the very top or bottom of the app/website. I'm not sure how to expose this yet, though. ``` {...
```json { "common": { "remL": [ { "type": "M", "code": "isFreetext", "txtN": "false" }, { "type": "M", "code": "dbnetz_subcategory1stLevel", "txtN": "Gefährliches Ereignis" }, { "type": "M", "code": "dbnetz_effects", "txtN": "[{"products":"P00000001111000","effectId":10,"texts":{"DE":{"lang":"DE","trafficTypeCode":"SGV","effect":"Umleitung","additionalEffects":[]}}},{"products":"P00011000000000","effectId":7,"texts":{"DE":{"lang":"DE","trafficTypeCode":"SPNV","effect":"Sonstiges","additionalEffects":[]}}}]"...
```js { "common": { "locL": [ { "lid": "A=4@O=Berlin, Tempelhofer Park Eingang Oderstr.@X=13418720@Y=52476688@U=104@L=900981505@", "type": "P", "name": "Berlin, Tempelhofer Park Eingang Oderstr.", "icoX": 1, "extId": "900981505", "state": "F", "crd": { "x":...
Apparently the VBB API will only return a certain number of stations. Throw if the passed value is above.
From https://github.com/derhuerst/compute-db-station-weight/blob/dda148fa533d7497b5d24737d2d1246407719aa9/index.js#L42-L43 > Apparently, the DB API does not support querying departures for 1440 min (1 day) at once. Throw if the passed value is above to prevent implementations from...
When trying to parse the stop/station & entrances hierarchies exposed by some HAFAS endpoints (#131), I noticed that parsing the items in `res.common.locL` is potentially recursive. The data seen so...
```json [ { "tripId": "1|40178|0|86|3022020", "stop": { "type": "stop", "id": "900000003200", "name": "S+U Berlin Hauptbahnhof (tief)", "location": { "type": "location", "id": "900003200", "latitude": 52.525041, "longitude": 13.369387 }, "products": { "suburban":...
The DB API returns operators such as `Nahreisezug`.