dbopendata / db-fahrplan-api

DB Fahrplan API
31 stars 1 forks source link

Typo in departure response #14

Open marcelbuesing opened 8 years ago

marcelbuesing commented 8 years ago

It appears that sometimes tyte is returned as response attribute instead of type.

See the following example:

"DepartureBoard":{
  "noNamespaceSchemaLocation":"http://open-api.bahn.de/bin/rest.exe/v1.0/xsd?name=hafasRestDepartureBoard.xsd",
  "Departure":[
   {
    "name":"IC 1915",
    "type":"IC",
    "stopid":"8000096",
    "stop":"Stuttgart Hbf",
    "time":"21:19",
    "date":"2016-04-17",
    "direction":"T195188bingen Hbf",
    "JourneyDetailRef":{
      "ref":"http://open-api.bahn.de/bin/rest.exe/v1.0/journeyDetail?ref=715902%2F240351%2F995146%2F258939%2F80%3Fdate%3D2016-04-17%26station_evaId%3D8000096%26station_type%3Ddep%26authKey%3Dxxx16%26lang%3Den%26format%3Djson%26"
      }
    },{
    "name":"ICE 1110",
    "tyte":"ICE",
    "stopid":"8000096",
    "stop":"Stuttgart Hbf",
    "time":"21:51",
    "date":"2016-04-17",
    "direction":"K195182ln Hbf",
    "track":"10",
    "JourneyDetailRef":{
      "ref":"http://open-api.bahn.de/bin/rest.exe/v1.0/journeyDetail?ref=120102%2F40860%2F950106%2F435019%2F80%3Fdate%3D2016-04-17%26station_evaId%3D8000096%26station_type%3Ddep%26authKey%3Dxxx16%26lang%3Den%26format%3Djson%26"
      }
    },{
    "name":"ICE 1190",
    "tyte":"ICE",
    "stopid":"8000096",
    "stop":"Stuttgart Hbf",
    "time":"21:51",
    "date":"2016-04-17",
    "direction":"Wiesbaden Hbf",
    "track":"10",
    "JourneyDetailRef":{
      "ref":"http://open-api.bahn.de/bin/rest.exe/v1.0/journeyDetail?ref=454620%2F152584%2F440394%2F68657%2F80%3Fdate%3D2016-04-17%26station_evaId%3D8000096%26station_type%3Ddep%26authKey%3Dxx16%26lang%3Den%26format%3Djson%26"
      }
marcelbuesing commented 8 years ago

Come on, this should be a quick and easy fix. It also affects the XML output.

highsource commented 8 years ago

Hi Marcel,

you're absolutely right, this is trivial and could've been fixed in no time.

However, we (the DB Open Data team) neither control nor have any access to the implementation of the interface. We're forwarding the issues to the owner of the API (DB Vertrieb) for them to fix.

Best wishes, Alexey

highsource commented 8 years ago

Reproduced:

http://open-api.bahn.de/bin/rest.exe/departureBoard?authKey=<KEY>&lang=de&id=8000096&date=2016-04-17&format=json
marcelbuesing commented 8 years ago

@highsource sorry I was getting a little emotional there. Looking forward to a fix by the DB Vertrieb.

highsource commented 8 years ago

Another one:

http://open-api.bahn.de/bin/rest.exe/departureBoard?authKey=<KEY>&lang=de&id=8010224&date=2016-04-20&format=json
highsource commented 8 years ago

@marcelbuesing No problem, I completely understand you here. :)

marcelbuesing commented 8 years ago

"tyoe":"IC" Also seems to occur.

JNK commented 8 years ago

And another one:

https://open-api.bahn.de/bin/rest.exe/departureBoard?id=008000667&time=12%3A00&data=2016-05-09&lang=de&authKey=<KEY>&format=json
highsource commented 8 years ago

:+1:

phbenisc commented 8 years ago

It seems this bug mostly affects CNL and IC Trains. I have also seen ICE Trains but they had 4 numbers. The operator of all the buggy trains I found were SBB or DPN.

Strangely enough the bug only appears in the departureBoard and not in the arrivalBoard. Even if its the same train...

jvf commented 7 years ago

still occurring...