public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
263 stars 52 forks source link

fixed incorrect parameters in documentation #313

Closed Revilum closed 4 months ago

Revilum commented 5 months ago

I'm not sure how exactly the query parameter works exactly, but the source code for client.lines requires the parameter query and checks if the string is empty.

derhuerst commented 5 months ago

Thanks!

Unfortunately, AFAIK it is HAFAS-endpoint-specific what can be passed into query, so I haven't properly documented it. If you want, you're very welcome to document some examples with some specific profile(s).

derhuerst commented 4 months ago

@Revilum Do you still want to add some examples here? Otherwise I'll merge this as-is.

Revilum commented 4 months ago

I have only tried this with the nah.sh endpoint (which requires it) but yes you can merge this if you want.