Closed kontextbewusst closed 6 years ago
see also derhuerst/vbb-hafas#18, it is the same issue with Berlin & Brandenburg public transport.
I see... so this is a Hafas issue?
Not sure if they stopped recognising the field or if I introduced a bug. I'm not too familiar with all the special names and abbreviations. Will look into it soon.
It looks like the results
option only works if the distance
option is also being used. AFAIK this is given by the server, so I can't change it.
First of all, thank you for this nice API!
I discovered that the
results
option parameter for thestationsNearby
search has no effect (at least for the cases that I tested). It does not matter if I pass in 1, 5, or 10 -- the API always delivers more stations.For example,
hafas.nearby( 50.967417, 11.031457 )
gives me 33 results, where as the documentation states that 8 should be the default value for theresults
parameter.hafas.nearby( 50.967417, 11.031457, { results: 5 } )
yields the same amount of stations.