And similarly with other places. The ID returned on the stop has 12 digits. Now trying to request a journey I get this response (http 'https://3.vbb.transport.rest/journeys?from=900000245645&to=900000415725&arrival=1578898800'):
{
"error": true,
"msg": "ID must have 7 or 9 digits."
}
What does that mean? I also tried deleting some of the zeros to match the location id (see response above) but I get the same error. Where would I get the right ID? Or is something wrong with the validation code? I grepped the source code for the error message but couldn't find anything.
The stops endpoint seems to have information about the stop with the original (12-digit) id. The journey endpoint doesn't.
Something similar happened to me elsewhere. I query a nearby stop to the center of Frankfurt (Main) and get 800000002041. Trying to query for stop or journey information returns a HAFAS error: location/stop not found. Is there a mismatch between returned IDs and available stop information / journey information? Note that the above error does not complain about a stop that's not found but here it does.
I'm hitting a weird error for some journeys (
http
below is thehttpie
cli).I query for stops close to a particular location (
http 'https://3.vbb.transport.rest/stops/nearby?longitude=13.471680&latitude=51.763612'
):And similarly with other places. The ID returned on the
stop
has 12 digits. Now trying to request a journey I get this response (http 'https://3.vbb.transport.rest/journeys?from=900000245645&to=900000415725&arrival=1578898800'
):What does that mean? I also tried deleting some of the zeros to match the
location
id (see response above) but I get the same error. Where would I get the right ID? Or is something wrong with the validation code? I grepped the source code for the error message but couldn't find anything.The stops endpoint seems to have information about the stop with the original (12-digit) id. The journey endpoint doesn't.
Something similar happened to me elsewhere. I query a nearby stop to the center of Frankfurt (Main) and get
800000002041
. Trying to query for stop or journey information returns aHAFAS error: location/stop not found
. Is there a mismatch between returned IDs and available stop information / journey information? Note that the above error does not complain about a stop that's not found but here it does.