Skip to content

Simple PHP wrapper for official Prague transport API build on top of guzzle/http

License

Notifications You must be signed in to change notification settings

Mistrfilda/pid-api

Repository files navigation

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/.

About

Simple PHP wrapper for official Prague transport API build on top of guzzle/http

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages