Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 3.22 KB

README.md

File metadata and controls

51 lines (36 loc) · 3.22 KB

Simple PHP wrapper for official Prague transport API and RSS feeds

Instalation

composer require mistrfilda/pid-api 

Golemio

Currently supports V2 of API - https://api.golemio.cz/v2 - more about api on https://golemioapi.docs.apiary.io/

Usage

$golemioService = new \Mistrfilda\Pid\Api\GolemioService('Your access token');

Supported endpoints with methods:

Each response returns data value object with obtained response. For example, get stops returns Stop response object

Endpoint API doc url Golemio service method
GTFS stops https://golemioapi.docs.apiary.io/#reference/public-transport/gtfs-stops/get-all-gtfs-stops $golemioService->sendGetStopsRequest();
GTFS trips https://golemioapi.docs.apiary.io/#reference/public-transport/gtfs-trips/get-all-gtfs-trips $golemioService->sendGetStopTripsRequest();
GTFS stoptimes https://golemioapi.docs.apiary.io/#reference/public-transport/gtfs-stops-times/get-gtfs-stop-times $golemioService->sendGetStopTimesRequest();
Vehicle positions https://golemioapi.docs.apiary.io/#reference/public-transport/vehicle-positions/get-all-vehicle-positions $golemioService->sendGetVehiclePositionRequest();
Parkings https://golemioapi.docs.apiary.io/#reference/parking/parking-lots/get-all-parking-lots $golemioService->sendGetParkingLotRequest();

RSS feeds

Usage

$rssService = new \Mistrfilda\Pid\Api\RssService();

Supported feeds

More info about rss feeds can be found here https://pid.cz/rss-kanal/.