danshaman05 / my-assistant

Simple webpage where you can find nearest Bratislava city's bus/tram info and SHMU.sk Aladin and Radar.
0 stars 0 forks source link

Moja-MHD: Get data from Opendata Bratislava API instead of scraping of IMHD #9

Open danshaman05 opened 3 months ago

danshaman05 commented 3 months ago

API documentation: https://opendata.bratislava.sk/page/doc

Some interesting discussions: https://platforma.slovensko.digital/t/plan-na-vo-vyhladavac-dopravnych-spojeni-ids-bk/2452/45?page=2 https://platforma.slovensko.digital/t/rychlejsie-updatovanie-api-mhd-bratislava/8717/18

This program uses skeleton.dpb.sk and gets some data (maybe current location of buses?): https://github.com/mrtineu/MHD_API/blob/main/mhd_api/mhd.py

Probably this link will get actual buses/trams location: https://skeleton.dpb.sk/Infotainment/VehicleState/__VehicleStateMapData?_ticket=973e3385-98cc-47a2-bb26-993fa41f26d2

danshaman05 commented 3 months ago

We could use the scraping module for testing