PEKA VM Client

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

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

com.github.adrmal
Идентификатор

Идентификатор

peka-vm-client
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

PEKA VM Client
Java library for access data from REST API related to PEKA Virtual Monitor.
Ссылка на сайт

Ссылка на сайт

https://github.com/adrmal/peka-vm-client
Система контроля версий

Система контроля версий

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

Скачать peka-vm-client

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.assertj : assertj-core jar 3.13.2

Модули Проекта

Данный проект не имеет модулей.

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)

Версии библиотеки

Версия
1.0.0
0.0.2
0.0.1