PEKA VM Client

Java library for access data from REST API related to PEKA Virtual Monitor.

Categories

Categories

CLI User Interface
GroupId

GroupId

com.github.adrmal
ArtifactId

ArtifactId

peka-vm-client
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

PEKA VM Client
Java library for access data from REST API related to PEKA Virtual Monitor.
Project URL

Project URL

https://github.com/adrmal/peka-vm-client
Source Code Management

Source Code Management

https://github.com/adrmal/peka-vm-client

Download peka-vm-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.adrmal/peka-vm-client/ -->
<dependency>
    <groupId>com.github.adrmal</groupId>
    <artifactId>peka-vm-client</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.adrmal/peka-vm-client/
implementation 'com.github.adrmal:peka-vm-client:1.0.0'
// https://jarcasting.com/artifacts/com.github.adrmal/peka-vm-client/
implementation ("com.github.adrmal:peka-vm-client:1.0.0")
'com.github.adrmal:peka-vm-client:jar:1.0.0'
<dependency org="com.github.adrmal" name="peka-vm-client" rev="1.0.0">
  <artifact name="peka-vm-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.adrmal', module='peka-vm-client', version='1.0.0')
)
libraryDependencies += "com.github.adrmal" % "peka-vm-client" % "1.0.0"
[com.github.adrmal/peka-vm-client "1.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.jboss.resteasy : resteasy-client jar 4.2.0.Final
com.google.code.gson : gson jar 2.8.5
com.google.guava : guava jar 28.0-jre

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 3.13.2

Project Modules

There are no modules declared in this project.

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)

Versions

Version
1.0.0
0.0.2
0.0.1