ryanbateman / bvg-sensor

A HomeAssistant / HACS integration of Berlin Public Transport (BVG)
The Unlicense
14 stars 1 forks source link

API link in readme no longer works #1

Closed varyamereon closed 2 years ago

varyamereon commented 2 years ago

It seems the URL in the readme file detailing how to obtain the stop_id is out of date and no longer works. I have also tried https://v5.bvg.transport.rest/stations/nearby?latitude=52.52725&longitude=13.4123 however this also returns an error.

Thanks

cvbraeuer commented 2 years ago

deriving from https://petstore.swagger.io/?url=https%3A%2F%2Fv5.bvg.transport.rest%2F.well-known%2Fservice-desc%0A#/

the URL you are looking for should be something along the lines of

https://v5.bvg.transport.rest/stops/nearby?latitude=52.52725&longitude=13.4123

ryanbateman commented 2 years ago

I've amended the docs to reflect this. Thanks, @cvbraeuer, for hunting down the fix, and thank you @varyamereon for raising the issue!