Skip to content

adrmal/peka-vm-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PEKA VM Client

PEKA VM Client is a Java library, that allows you to easily access data from REST API provided by Urban Transport Authority in Poznań (Zarząd Transportu Miejskiego w Poznaniu) for PEKA Virtual Monitor.

The library includes:

  • stop points,
  • bus and tram lines,
  • real departure times based on current position of buses and trams,
  • messages on current traffic incidents, etc.

REST API documentation

REST API consumed by this library doesn't have any official documentation, but there is unofficial one, which is available here.

Download

<dependency>
   <groupId>com.github.adrmal</groupId>
   <artifactId>peka-vm-client</artifactId>
   <version>1.0.0</version>
</dependency>

Example usage

List<StopPoint> stopPoints = Peka.getStopPoints("Most");

List<Bollard> bollards = Peka.getBollardsByStreet("Naramowicka");

List<DepartureTime> departureTimes = Peka.getTimesByBollard("GABA01");

Very short documentation

The main class of the library is Peka, which has following static methods:

List<StopPoint> getStopPoints(String stopPointPattern)
List<Bollard> getBollardsByStopPoint(String stopPointName)
List<Bollard> getBollardsByStreet(String streetName)
List<DirectionWithBollards> getDirectionsWithBollardsByLine(String lineNumber)
List<Line> getLines(String linePattern)
List<Street> getStreets(String streetPattern)
List<DepartureTime> getTimesByBollard(String bollardTag)
List<DepartureTime> getTimesByStopPoint(String stopPointName)
long getServerTime()
List<Message> getMessagesForBollard(String bollardTag)

Releases

No releases published

Packages

No packages published

Languages