Skip to content

Instantly share code, notes, and snippets.

@d3d9
Last active August 20, 2019 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3d9/350b25b65f6dc4a92195cfbb12d1cc45 to your computer and use it in GitHub Desktop.
Save d3d9/350b25b65f6dc4a92195cfbb12d1cc45 to your computer and use it in GitHub Desktop.
DB Busradar NRW requests
POST
http://db-regio.hafas.de/bin/hci/mgate.exe
HTTP/1.1
User-Agent
: Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)
Content-Type
: application/json;charset=UTF-8
Host
: db-regio.hafas.de
Connection
: Keep-Alive
Accept-Encoding
: gzip
Content-Length
: 401
{
"auth": {
"aid": "OGBAqytjHhCvr0J4",
"type": "AID"
},
"client": {
"id": "DB-REGIO",
"name": "DB Busradar NRW",
"os": "Android 9",
"type": "AND",
"ua": "Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)",
"v": 100021
},
"ext": "DB.REGIO.1",
"formatted": false,
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcReqL": [
{
"cfg": {
"polyEnc": "GPA"
},
"meth": "JourneyDetails",
"req": {
"jid": "1|46825|2|80|19082019"
}
}
],
"ver": "1.10"
}
HTTP/1.1
200
OK
Date
: Mon, 19 Aug 2019 22:03:58 GMT
Server
: Apache
Vary
: Accept-Encoding
Content-Encoding
: gzip
Content-Length
: 1940
Keep-Alive
: timeout=5, max=92
Connection
: Keep-Alive
Content-Type
: application/json; charset=utf-8
{
"ext": "DB.REGIO.1",
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcResL": [
{
"err": "OK",
"meth": "JourneyDetails",
"res": {
"common": {
"icoL": [
{
"bg": {
"a": 255,
"b": 20,
"g": 20,
"r": 240
},
"fg": {
"a": 255,
"b": 255,
"g": 255,
"r": 255
},
"res": "prod_bus"
},
{
"res": "BVR",
"txt": "BVR Busverkehr Rheinland"
},
{
"res": "STA"
}
],
"locL": [
{
"crd": {
"x": 7471951,
"y": 51359545
},
"extId": "3317047",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Stadtmitte@X=7471951@Y=51359545@U=80@L=3317047@",
"name": "Hagen(Westf) Stadtmitte",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7423346,
"y": 51377847
},
"extId": "3317033",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Vossacker@X=7423346@Y=51377847@U=80@L=3317033@",
"name": "Hagen(Westf) Vossacker",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7469119,
"y": 51359131
},
"extId": "3327046",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Volkspark@X=7469119@Y=51359131@U=80@L=3327046@",
"name": "Hagen(Westf) Volkspark",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7465694,
"y": 51359428
},
"extId": "3327045",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Theater@X=7465694@Y=51359428@U=80@L=3327045@",
"name": "Hagen(Westf) Theater",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7461820,
"y": 51359715
},
"extId": "3317039",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Schwenke@X=7461820@Y=51359715@U=80@L=3317039@",
"name": "Hagen(Westf) Schwenke",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7462278,
"y": 51361936
},
"extId": "3357000",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Hauptbahnhof Bus@X=7462278@Y=51361936@U=80@L=3357000@",
"name": "Hagen(Westf) Hauptbahnhof Bus",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7463618,
"y": 51364264
},
"extId": "3317038",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Altenhagener Brücke@X=7463618@Y=51364264@U=80@L=3317038@",
"name": "Hagen(Westf) Altenhagener Brücke",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7459384,
"y": 51367662
},
"extId": "3327001",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Eckeseyer Brücke@X=7459384@Y=51367662@U=80@L=3327001@",
"name": "Hagen(Westf) Eckeseyer Brücke",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7456238,
"y": 51374404
},
"extId": "3327002",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Bauhaus@X=7456238@Y=51374404@U=80@L=3327002@",
"name": "Hagen(Westf) Bauhaus",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7453873,
"y": 51378539
},
"extId": "3327013",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Fuhrparkstraße@X=7453873@Y=51378539@U=80@L=3327013@",
"name": "Hagen(Westf) Fuhrparkstraße",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7452956,
"y": 51380687
},
"extId": "3327037",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Eichendorffstraße@X=7452956@Y=51380687@U=80@L=3327037@",
"name": "Hagen(Westf) Eichendorffstraße",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7451204,
"y": 51382836
},
"extId": "3327003",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Klopstockstraße@X=7451204@Y=51382836@U=80@L=3327003@",
"name": "Hagen(Westf) Klopstockstraße",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7448012,
"y": 51385290
},
"extId": "3327036",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Geiterbrücke@X=7448012@Y=51385290@U=80@L=3327036@",
"name": "Hagen(Westf) Geiterbrücke",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7444399,
"y": 51387923
},
"extId": "3327100",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Weststraße@X=7444399@Y=51387923@U=80@L=3327100@",
"name": "Hagen(Westf) Weststraße",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7433998,
"y": 51384067
},
"extId": "3327048",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Hartmannstraße@X=7433998@Y=51384067@U=80@L=3327048@",
"name": "Hagen(Westf) Hartmannstraße",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7429611,
"y": 51382503
},
"extId": "3387101",
"icoX": 2,
"lid": "A=1@O=Hagen-Vorhalle Mitte@X=7429611@Y=51382503@U=80@L=3387101@",
"name": "Hagen-Vorhalle Mitte",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7424146,
"y": 51381280
},
"extId": "3327035",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Vorhaller Straße@X=7424146@Y=51381280@U=80@L=3327035@",
"name": "Hagen(Westf) Vorhaller Straße",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7421000,
"y": 51380400
},
"extId": "3327034",
"icoX": 2,
"lid": "A=1@O=Hagen(Westf) Rehdeicke@X=7421000@Y=51380400@U=80@L=3327034@",
"name": "Hagen(Westf) Rehdeicke",
"pCls": 32,
"state": "F",
"type": "S"
}
],
"opL": [
{
"icoX": 1,
"name": "BVR Busverkehr Rheinland",
"url": ""
}
],
"prodL": [
{
"cls": 32,
"icoX": 0,
"line": "NE9",
"name": "Bus NE9",
"number": "NE9",
"oprX": 0,
"prodCtx": {
"catCode": "5",
"catIn": "Bus",
"catOut": "Bus ",
"catOutL": "bus",
"catOutS": "Bus",
"line": "NE9",
"name": "Bus NE9",
"num": "18258"
}
}
],
"remL": []
},
"fpB": "20181209",
"fpE": "20191214",
"journey": {
"date": "20190819",
"dirTxt": "Hagen Vorhalle Vossacker",
"isRchbl": true,
"jid": "1|46825|2|80|19082019",
"poly": {
"crdEncS": "NNNNNNNNNNNNNNNNNN",
"crdEncYX": "cdnxHujrl@pAvPy@jTy@dW{LyAqMkGgTlYci@tRyXvMmLvDmL|IkN|RmOrUbW~_AvHjZrFda@nDrR~NsM",
"delta": true,
"dim": 2,
"name": "standard",
"ppLocRefL": [
{
"locX": 0,
"ppIdx": 0
},
{
"locX": 2,
"ppIdx": 1
},
{
"locX": 3,
"ppIdx": 2
},
{
"locX": 4,
"ppIdx": 3
},
{
"locX": 5,
"ppIdx": 4
},
{
"locX": 6,
"ppIdx": 5
},
{
"locX": 7,
"ppIdx": 6
},
{
"locX": 8,
"ppIdx": 7
},
{
"locX": 9,
"ppIdx": 8
},
{
"locX": 10,
"ppIdx": 9
},
{
"locX": 11,
"ppIdx": 10
},
{
"locX": 12,
"ppIdx": 11
},
{
"locX": 13,
"ppIdx": 12
},
{
"locX": 14,
"ppIdx": 13
},
{
"locX": 15,
"ppIdx": 14
},
{
"locX": 16,
"ppIdx": 15
},
{
"locX": 17,
"ppIdx": 16
},
{
"locX": 1,
"ppIdx": 17
}
],
"type": "WGS84"
},
"prodX": 0,
"sDaysL": [
{
"fLocX": 0,
"sDaysB": "000000000000000000000000000000000000000000000079D3E7CF9F3E7CF9F3E7CF9F3E7CE9F3E7CF1F3E7CF9F3E0",
"sDaysI": "not 4. Oct, 2. Nov",
"sDaysR": "Tu - Sa",
"tLocX": 1
}
],
"status": "P",
"stopL": [
{
"dInR": true,
"dPlatfS": "1",
"dProdX": 0,
"dProgType": "REPORTED",
"dTimeR": "01000300",
"dTimeS": "01000200",
"idx": 0,
"locX": 0
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "REPORTED",
"aTimeR": "01000300",
"aTimeS": "01000400",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01000400",
"dTimeS": "01000400",
"idx": 1,
"locX": 2
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01000500",
"aTimeS": "01000500",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01000500",
"dTimeS": "01000500",
"idx": 2,
"locX": 3
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01000600",
"aTimeS": "01000600",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01000600",
"dTimeS": "01000600",
"idx": 3,
"locX": 4
},
{
"aOutR": true,
"aPlatfS": "5",
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01000700",
"aTimeS": "01000700",
"dInR": true,
"dPlatfS": "5",
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01000700",
"dTimeS": "01000700",
"idx": 4,
"locX": 5
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01000900",
"aTimeS": "01000900",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01000900",
"dTimeS": "01000900",
"idx": 5,
"locX": 6
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001000",
"aTimeS": "01001000",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001000",
"dTimeS": "01001000",
"idx": 6,
"locX": 7
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001100",
"aTimeS": "01001100",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001100",
"dTimeS": "01001100",
"idx": 7,
"locX": 8
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001200",
"aTimeS": "01001200",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001200",
"dTimeS": "01001200",
"idx": 8,
"locX": 9
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001300",
"aTimeS": "01001300",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001300",
"dTimeS": "01001300",
"idx": 9,
"locX": 10
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001400",
"aTimeS": "01001400",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001400",
"dTimeS": "01001400",
"idx": 10,
"locX": 11
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001600",
"aTimeS": "01001600",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001600",
"dTimeS": "01001600",
"idx": 11,
"locX": 12
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001700",
"aTimeS": "01001700",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001700",
"dTimeS": "01001700",
"idx": 12,
"locX": 13
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01001900",
"aTimeS": "01001900",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01001900",
"dTimeS": "01001900",
"idx": 13,
"locX": 14
},
{
"aOutR": true,
"aPlatfS": "A3",
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01002000",
"aTimeS": "01002000",
"dInR": true,
"dPlatfS": "A3",
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01002000",
"dTimeS": "01002000",
"idx": 14,
"locX": 15
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01002100",
"aTimeS": "01002100",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01002100",
"dTimeS": "01002100",
"idx": 15,
"locX": 16
},
{
"aOutR": true,
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01002200",
"aTimeS": "01002200",
"dInR": true,
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01002200",
"dTimeS": "01002200",
"idx": 16,
"locX": 17
},
{
"aOutR": true,
"aPlatfS": "1",
"aProdX": 0,
"aProgType": "CALCULATED",
"aTimeR": "01002300",
"aTimeS": "01002300",
"idx": 17,
"locX": 1
}
]
}
}
}
],
"ver": "1.10"
}
POST
http://db-regio.hafas.de/bin/hci/mgate.exe
HTTP/1.1
User-Agent
: Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)
Content-Type
: text/plain;charset=UTF-8
Host
: db-regio.hafas.de
Connection
: Keep-Alive
Accept-Encoding
: gzip
Content-Length
: 606
{
"auth": {
"aid": "OGBAqytjHhCvr0J4",
"type": "AID"
},
"client": {
"id": "DB-REGIO",
"name": "DB Busradar NRW",
"os": "Android 9",
"type": "AND",
"ua": "Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)",
"v": 100021
},
"ext": "DB.REGIO.1",
"formatted": false,
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcReqL": [
{
"cfg": {
"polyEnc": "GPA"
},
"meth": "JourneyGeoPos",
"req": {
"getUnmatched": false,
"jnyFltrL": [
{
"mode": "BIT",
"type": "PROD",
"value": "0000010001"
}
],
"maxJny": 256,
"perSize": 15000,
"rect": {
"llCrd": {
"x": 7286408,
"y": 51251993
},
"urCrd": {
"x": 7546909,
"y": 51526264
}
},
"time": "00338",
"trainPosMode": "CALC_REPORT"
}
}
],
"ver": "1.10"
}
HTTP/1.1
200
OK
Date
: Mon, 19 Aug 2019 22:03:39 GMT
Server
: Apache
Vary
: Accept-Encoding
Content-Encoding
: gzip
Content-Length
: 1279
Keep-Alive
: timeout=5, max=100
Connection
: Keep-Alive
Content-Type
: application/json; charset=utf-8
{
"ext": "DB.REGIO.1",
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcResL": [
{
"err": "OK",
"meth": "JourneyGeoPos",
"res": {
"common": {
"icoL": [
{
"res": "ProductBusGreen"
},
{
"res": "STA"
}
],
"locL": [
{
"crd": {
"x": 7471951,
"y": 51359545
},
"extId": "3317047",
"icoX": 1,
"lid": "A=1@O=Hagen(Westf) Stadtmitte@X=7471951@Y=51359545@U=80@L=3317047@",
"name": "Hagen(Westf) Stadtmitte",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7469119,
"y": 51359131
},
"extId": "3327046",
"icoX": 1,
"lid": "A=1@O=Hagen(Westf) Volkspark@X=7469119@Y=51359131@U=80@L=3327046@",
"name": "Hagen(Westf) Volkspark",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7423346,
"y": 51377847
},
"extId": "3317033",
"icoX": 1,
"lid": "A=1@O=Hagen(Westf) Vossacker@X=7423346@Y=51377847@U=80@L=3317033@",
"name": "Hagen(Westf) Vossacker",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7182273,
"y": 51397083
},
"extId": "3307137",
"icoX": 1,
"lid": "A=1@O=Hattingen Mitte@X=7182273@Y=51397083@U=80@L=3307137@",
"name": "Hattingen Mitte",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7337984,
"y": 51421327
},
"extId": "3307121",
"icoX": 1,
"lid": "A=1@O=Witten Bundesverlag@X=7337984@Y=51421327@U=80@L=3307121@",
"name": "Witten Bundesverlag",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7339782,
"y": 51412266
},
"extId": "3307119",
"icoX": 1,
"lid": "A=1@O=Witten Gasthof Deutsche Eiche@X=7339782@Y=51412266@U=80@L=3307119@",
"name": "Witten Gasthof Deutsche Eiche",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7386490,
"y": 51386332
},
"extId": "3307209",
"icoX": 1,
"lid": "A=1@O=Wetter(Ruhr) Bahnhof@X=7386490@Y=51386332@U=80@L=3307209@",
"name": "Wetter(Ruhr) Bahnhof",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7333220,
"y": 51350654
},
"extId": "3307146",
"icoX": 1,
"lid": "A=1@O=Gevelsberg-Silschede Mitte@X=7333220@Y=51350654@U=80@L=3307146@",
"name": "Gevelsberg-Silschede Mitte",
"pCls": 32,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7330442,
"y": 51435494
},
"extId": "3307126",
"icoX": 1,
"lid": "A=1@O=Witten Hbf@X=7330442@Y=51435494@U=80@L=3307126@",
"name": "Witten Hbf",
"pCls": 56,
"state": "F",
"type": "S"
},
{
"crd": {
"x": 7280211,
"y": 51423476
},
"extId": "3307128",
"icoX": 1,
"lid": "A=1@O=Witten-Herbede Mitte@X=7280211@Y=51423476@U=80@L=3307128@",
"name": "Witten-Herbede Mitte",
"pCls": 32,
"state": "F",
"type": "S"
}
],
"opL": [],
"prodL": [
{
"cls": 32,
"icoX": 0,
"line": "NE9",
"name": "Bus NE9"
},
{
"cls": 32,
"icoX": 0,
"line": "SB38",
"name": "Bus SB38"
}
],
"remL": []
},
"date": "20190820",
"fpB": "20181209",
"fpE": "20191214",
"jnyL": [
{
"ani": {
"dirGeo": [
-1,
-1,
-1,
-1
],
"fLocX": [
0,
0,
0,
0
],
"mSec": [
0,
5000,
10000,
15000
],
"poly": {
"crdEncS": "NNNN",
"crdEncYX": "minxHu_rl@??????",
"delta": true,
"dim": 2
},
"proc": [
48,
48,
48,
48
],
"tLocX": [
1,
1,
1,
1
]
},
"date": "20190819",
"dirGeo": 21,
"dirTxt": "Hagen Vorhalle Vossacker",
"jid": "1|46825|2|80|19082019",
"pos": {
"x": 7470198,
"y": 51360399
},
"proc": 48,
"prodX": 0,
"stopL": [
{
"dInR": true,
"dInS": true,
"dPlatfS": "1",
"dTimeR": "01000300",
"dTimeS": "01000200",
"locX": 0
},
{
"dInR": true,
"dInS": true,
"dPlatfS": "1",
"dTimeR": "01000300",
"dTimeS": "01000200",
"locX": 0
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "01000400",
"aTimeS": "01000400",
"dInR": true,
"dInS": true,
"dTimeR": "01000400",
"dTimeS": "01000400",
"locX": 1
},
{
"aOutR": true,
"aOutS": true,
"aPlatfS": "1",
"aTimeR": "01002300",
"aTimeS": "01002300",
"locX": 2
}
]
},
{
"ani": {
"dirGeo": [
-1,
-1,
-1,
-1
],
"fLocX": [
4,
4,
4,
4
],
"mSec": [
0,
5000,
10000,
15000
],
"poly": {
"crdEncS": "NNNN",
"crdEncYX": "oezxH{dxk@??????",
"delta": true,
"dim": 2
},
"proc": [
0,
0,
0,
0
],
"tLocX": [
5,
5,
5,
5
]
},
"date": "20190819",
"dirGeo": 24,
"dirTxt": "Wetter Bahnhof",
"jid": "1|40629|0|80|19082019",
"pos": {
"x": 7337904,
"y": 51421202
},
"proc": 0,
"prodX": 1,
"stopL": [
{
"dInR": true,
"dInS": true,
"dTimeR": "233600",
"dTimeS": "233200",
"locX": 3
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "01000300",
"aTimeS": "01000400",
"dInR": true,
"dInS": true,
"dTimeR": "01000300",
"dTimeS": "01000400",
"locX": 4
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "01000500",
"aTimeS": "01000600",
"dInR": true,
"dInS": true,
"dTimeR": "01000600",
"dTimeS": "01000600",
"locX": 5
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "01001600",
"aTimeS": "01001600",
"locX": 6
}
]
},
{
"ani": {
"dirGeo": [
-1,
-1,
-1,
-1
],
"fLocX": [
8,
8,
8,
8
],
"mSec": [
0,
5000,
10000,
15000
],
"poly": {
"crdEncS": "NNNN",
"crdEncYX": "or{xHu`qk@??????",
"delta": true,
"dim": 2
},
"proc": [
56,
56,
56,
56
],
"tLocX": [
9,
9,
9,
9
]
},
"date": "20190819",
"dirGeo": 17,
"dirTxt": "Hattingen-Mitte S über Witten Hbf.",
"jid": "1|40611|1|80|19082019",
"pos": {
"x": 7301398,
"y": 51428402
},
"proc": 56,
"prodX": 1,
"stopL": [
{
"dInR": true,
"dInS": true,
"dTimeR": "232500",
"dTimeS": "232200",
"locX": 7
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "235500",
"aTimeS": "235500",
"dInR": true,
"dInS": true,
"dTimeR": "235900",
"dTimeS": "235600",
"locX": 8
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "01000800",
"aTimeS": "01000600",
"dInR": true,
"dInS": true,
"dTimeR": "01000800",
"dTimeS": "01000600",
"locX": 9
},
{
"aOutR": true,
"aOutS": true,
"aTimeR": "01002700",
"aTimeS": "01002500",
"locX": 3
}
]
}
],
"time": "000338"
}
}
],
"ver": "1.10"
}
POST
http://db-regio.hafas.de/bin/hci/mgate.exe
HTTP/1.1
User-Agent
: Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)
Content-Type
: application/json;charset=UTF-8
Host
: db-regio.hafas.de
Connection
: Keep-Alive
Accept-Encoding
: gzip
Content-Length
: 445
{
"auth": {
"aid": "OGBAqytjHhCvr0J4",
"type": "AID"
},
"client": {
"id": "DB-REGIO",
"name": "DB Busradar NRW",
"os": "Android 9",
"type": "AND",
"ua": "Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)",
"v": 100021
},
"ext": "DB.REGIO.1",
"formatted": false,
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcReqL": [
{
"cfg": {
"polyEnc": "GPA"
},
"meth": "LocGeoPos",
"req": {
"rect": {
"llCrd": {
"x": 7459020,
"y": 51358372
},
"urCrd": {
"x": 7466912,
"y": 51365171
}
}
}
}
],
"ver": "1.10"
}
HTTP/1.1
200
OK
Date
: Mon, 19 Aug 2019 22:04:10 GMT
Server
: Apache
Vary
: Accept-Encoding
Content-Encoding
: gzip
Content-Length
: 691
Keep-Alive
: timeout=5, max=98
Connection
: Keep-Alive
Content-Type
: application/json; charset=utf-8
{
"ext": "DB.REGIO.1",
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcResL": [
{
"err": "OK",
"meth": "LocGeoPos",
"res": {
"common": {
"icoL": [
{
"res": "STA"
}
],
"locL": [],
"opL": [],
"prodL": [],
"remL": []
},
"locL": [
{
"crd": {
"x": 7460247,
"y": 51362745
},
"crdAltL": [
{
"name": "standard",
"x": 7460247,
"y": 51362745
}
],
"dist": 0,
"extId": "8000142",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Bahnhof@X=7460247@Y=51362745@u=0@U=80@L=8000142@",
"name": "Hagen(Westf) Bahnhof",
"pCls": 31,
"state": "F",
"type": "S",
"wt": 31262
},
{
"crd": {
"x": 7461820,
"y": 51359715
},
"crdAltL": [
{
"name": "standard",
"x": 7461820,
"y": 51359715
}
],
"dist": 0,
"extId": "3317039",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Schwenke@X=7461820@Y=51359715@u=0@U=80@L=3317039@",
"name": "Hagen(Westf) Schwenke",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7462278,
"y": 51361522
},
"crdAltL": [
{
"name": "standard",
"x": 7462278,
"y": 51361522
}
],
"dist": 0,
"extId": "3235293",
"icoX": 0,
"lid": "A=1@O=Hbf Bus@X=7462278@Y=51361522@u=0@U=80@L=3235293@",
"name": "Hbf Bus",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 690
},
{
"crd": {
"x": 7462278,
"y": 51361936
},
"crdAltL": [
{
"name": "standard",
"x": 7462278,
"y": 51361936
}
],
"dist": 0,
"extId": "3357000",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Hauptbahnhof Bus@X=7462278@Y=51361936@u=0@U=80@L=3357000@",
"name": "Hagen(Westf) Hauptbahnhof Bus",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7462287,
"y": 51359500
},
"crdAltL": [
{
"name": "standard",
"x": 7462287,
"y": 51359500
}
],
"dist": 0,
"extId": "3327039",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Schwenke@X=7462287@Y=51359500@u=0@U=80@L=3327039@",
"name": "Hagen(Westf) Schwenke",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7462629,
"y": 51362088
},
"crdAltL": [
{
"name": "standard",
"x": 7462629,
"y": 51362088
}
],
"dist": 0,
"extId": "3307000",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Hauptbahnhof Bus@X=7462629@Y=51362088@u=0@U=80@L=3307000@",
"name": "Hagen(Westf) Hauptbahnhof Bus",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7463240,
"y": 51364066
},
"crdAltL": [
{
"name": "standard",
"x": 7463240,
"y": 51364066
}
],
"dist": 0,
"extId": "3327038",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Altenhagener Brücke@X=7463240@Y=51364066@u=0@U=80@L=3327038@",
"name": "Hagen(Westf) Altenhagener Brücke",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7463618,
"y": 51364264
},
"crdAltL": [
{
"name": "standard",
"x": 7463618,
"y": 51364264
}
],
"dist": 0,
"extId": "3317038",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Altenhagener Brücke@X=7463618@Y=51364264@u=0@U=80@L=3317038@",
"name": "Hagen(Westf) Altenhagener Brücke",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7465694,
"y": 51359428
},
"crdAltL": [
{
"name": "standard",
"x": 7465694,
"y": 51359428
}
],
"dist": 0,
"extId": "3327045",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Theater@X=7465694@Y=51359428@u=0@U=80@L=3327045@",
"name": "Hagen(Westf) Theater",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
},
{
"crd": {
"x": 7466674,
"y": 51359167
},
"crdAltL": [
{
"name": "standard",
"x": 7466674,
"y": 51359167
}
],
"dist": 0,
"extId": "3317045",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Theater@X=7466674@Y=51359167@u=0@U=80@L=3317045@",
"name": "Hagen(Westf) Theater",
"pCls": 32,
"state": "F",
"type": "S",
"wt": 42
}
]
}
}
],
"ver": "1.10"
}
POST
http://db-regio.hafas.de/bin/hci/mgate.exe
HTTP/1.1
User-Agent
: Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)
Content-Type
: application/json;charset=UTF-8
Host
: db-regio.hafas.de
Connection
: Keep-Alive
Accept-Encoding
: gzip
Content-Length
: 555
{
"auth": {
"aid": "OGBAqytjHhCvr0J4",
"type": "AID"
},
"client": {
"id": "DB-REGIO",
"name": "DB Busradar NRW",
"os": "Android 9",
"type": "AND",
"ua": "Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)",
"v": 100021
},
"ext": "DB.REGIO.1",
"formatted": false,
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcReqL": [
{
"cfg": {
"polyEnc": "GPA"
},
"meth": "LocMatch",
"req": {
"input": {
"field": "S",
"loc": {
"lid": "A=1@O=Hagen(Westf) Hauptbahnhof Bus@X=7462278@Y=51361936@u=0@U=80@L=3357000@",
"meta": false,
"name": "Hagen(Westf) Hauptbahnhof Bus",
"type": "S"
},
"maxLoc": 30
}
}
}
],
"ver": "1.10"
}
HTTP/1.1
200
OK
Date
: Mon, 19 Aug 2019 22:04:12 GMT
Server
: Apache
Vary
: Accept-Encoding
Content-Encoding
: gzip
Content-Length
: 347
Keep-Alive
: timeout=5, max=96
Connection
: Keep-Alive
Content-Type
: application/json; charset=utf-8
{
"ext": "DB.REGIO.1",
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcResL": [
{
"err": "OK",
"meth": "LocMatch",
"res": {
"common": {
"icoL": [
{
"res": "STA"
}
],
"locL": [],
"opL": [],
"prodL": [],
"remL": []
},
"match": {
"field": "S",
"locL": [
{
"crd": {
"x": 7462278,
"y": 51361936
},
"crdAltL": [
{
"name": "standard",
"x": 7462278,
"y": 51361936
}
],
"dist": 0,
"extId": "3357000",
"icoX": 0,
"lid": "A=1@O=Hagen(Westf) Hauptbahnhof Bus@X=7462278@Y=51361936@u=0@U=80@L=3357000@p=1566157976@",
"name": "Hagen(Westf) Hauptbahnhof Bus",
"pCls": 32,
"state": "F",
"type": "S"
}
],
"state": "F"
}
}
}
],
"ver": "1.10"
}
POST
http://db-regio.hafas.de/bin/hci/mgate.exe
HTTP/1.1
User-Agent
: Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)
Content-Type
: application/json;charset=UTF-8
Host
: db-regio.hafas.de
Connection
: Keep-Alive
Accept-Encoding
: gzip
Content-Length
: 675
{
"auth": {
"aid": "OGBAqytjHhCvr0J4",
"type": "AID"
},
"client": {
"id": "DB-REGIO",
"name": "DB Busradar NRW",
"os": "Android 9",
"type": "AND",
"ua": "Dalvik/2.1.0 (Linux; U; Android 9; moto g(6) Build/PPS29.55-37-4)",
"v": 100021
},
"ext": "DB.REGIO.1",
"formatted": false,
"id": "cjmktt566ce8p28w",
"lang": "eng",
"svcReqL": [
{
"cfg": {
"polyEnc": "GPA"
},
"meth": "StationBoard",
"req": {
"date": "20190820",
"getPasslist": false,
"jnyFltrL": [
{
"mode": "BIT",
"type": "PROD",
"value": "0001110000000000"
}
],
"maxJny": 50,
"stbLoc": {
"lid": "A=1@O=Hagen(Westf) Hauptbahnhof Bus@X=7462278@Y=51361936@u=0@U=80@L=3357000@p=1566157976@",
"meta": false,
"name": "Hagen(Westf) Hauptbahnhof Bus",
"type": "S"
},
"time": "00412"
}
}
],
"ver": "1.10"
}
"url": ""
}
],
"prodL": [
{
"cls": 32,
"icoX": 0,
"line": "NE9",
"name": "Bus NE9",
"number": "NE9",
"oprX": 0,
"prodCtx": {
"catCode": "5",
"catIn": "Bus",
"catOut": "Bus ",
"catOutL": "bus",
"catOutS": "Bus",
"line": "NE9",
"name": "Bus NE9",
"num": "18258"
}
},
{
"cls": 32,
"icoX": 0,
"line": "NE9",
"name": "Bus NE9",
"number": "NE9",
"oprX": 0,
"prodCtx": {
"catCode": "5",
"catIn": "Bus",
"catOut": "Bus ",
"catOutL": "bus",
"catOutS": "Bus",
"line": "NE9",
"name": "Bus NE9",
"num": "18260"
}
},
{
"cls": 32,
"icoX": 0,
"line": "NE9",
"name": "Bus NE9",
"number": "NE9",
"oprX": 0,
"prodCtx": {
"catCode": "5",
"catIn": "Bus",
"catOut": "Bus ",
"catOutL": "bus",
"catOutS": "Bus",
"line": "NE9",
"name": "Bus NE9",
"num": "18259"
}
}
],
"remL": []
},
"fpB": "20181209",
"fpE": "20191214",
"jnyL": [
{
"date": "20190819",
"dirTxt": "Hagen Vorhalle Vossacker",
"isRchbl": true,
"jid": "1|46825|2|80|19082019",
"prodX": 0,
"status": "P",
"stbStop": {
"dInR": true,
"dPlatfS": "5",
"dProdX": 0,
"dProgType": "CALCULATED",
"dTimeR": "01000700",
"dTimeS": "01000700",
"idx": 4,
"locX": 0
}
},
{
"date": "20190820",
"dirTxt": "Hagen Vorhalle Vossacker",
"isRchbl": true,
"jid": "1|46825|0|80|20082019",
"prodX": 1,
"status": "P",
"stbStop": {
"dInR": true,
"dPlatfS": "5",
"dProdX": 1,
"dTimeS": "220700",
"idx": 4,
"locX": 0
}
},
{
"date": "20190820",
"dirTxt": "Hagen Vorhalle Vossacker",
"isRchbl": true,
"jid": "1|46825|1|80|20082019",
"prodX": 2,
"status": "P",
"stbStop": {
"dInR": true,
"dPlatfS": "5",
"dProdX": 2,
"dTimeS": "230700",
"idx": 4,
"locX": 0
}
}
],
"type": "DEP"
}
}
],
"ver": "1.10"
}
@d3d9
Copy link
Author

d3d9 commented Aug 19, 2019

Hier habe ich einiges hinkopiert. Die Originalausgabe von mitmproxy ist hier: https://d3d9.xyz/ups/busradarmitm
@derhuerst

@derhuerst
Copy link

Jap, das ist HAFAS. Dürftest du mit hafas-client anfragen können, nachdem du ein Profil geschrieben hast. Ich habe mal public-transport/hafas-client#125 dafür erstellt, schreib mir dort, wenn du Fragen hast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment