JC Decaux Open Data Client

This library is a wrapper around JC Decaux's Open Data APIs

Лицензия

Лицензия

Категории

Категории

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

Группа

com.jcdecaux.opendata
Идентификатор

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

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

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

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

JC Decaux Open Data Client
This library is a wrapper around JC Decaux's Open Data APIs
Ссылка на сайт

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

https://jcdecaux.github.io/opendata-client
Система контроля версий

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

https://github.com/JCDecaux/opendata-client

Скачать opendata-client

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.jboss.resteasy : resteasy-jackson2-provider jar 3.0.9.Final
org.jboss.resteasy : resteasy-client jar 3.0.9.Final

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

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

Note: current master version is 2.0.0-SNAPSHOT. We are changing the Java APIs to be more flexible and user-friendly. This README is valid for 1.X only.

Java client for JCDecaux Open Data

This project is a simple client library for JC Decaux Open Data. In order to use this API, you need to get a key at http://developer.jcdecaux.com.

Get it

JCD Open Data Client is available in Maven Central repository.

<dependency>
    <groupId>com.jcdecaux.opendata</groupId>
    <artifactId>opendata-client</artifactId>
    <version>1.1.0</version>
</dependency>

Features

Note: The client is thread-safe.

Bike sharing system

// ...
import static com.jcdecaux.opendata.client.vls.v1.VLSClient.vlsClient;

public class MyClass {

  private static final String apiKey = "xxxxx";

  public void myMethod() {
    // Get all stations
    List<StationDTO> all = vlsClient.getStations(apiKey, null);

    // Get all contracts
    List<ContractDTO> c = vlsClient.getContracts(apiKey);

    // Get all stations for one contract (Paris)
    List<StationDTO> p = vlsClient.getStations(apiKey, "Paris");

    // Get one station of Paris
    StationDTO s = vlsClient.getStation(apiKey, "Paris", "35010");
  }

}

Roadmap

We will update this client according to updates to our Opendata API

License

This software is licenced under the Apache Software License v2.0, you can find it in the LICENCE file.

com.jcdecaux.opendata

JCDecaux Developers

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

Версия
1.1.0