JC Decaux Open Data Client

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

License

License

Categories

Categories

Data CLI User Interface
GroupId

GroupId

com.jcdecaux.opendata
ArtifactId

ArtifactId

opendata-client
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

https://jcdecaux.github.io/opendata-client
Source Code Management

Source Code Management

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

Download opendata-client

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.jboss.resteasy : resteasy-jackson2-provider jar 3.0.9.Final
org.jboss.resteasy : resteasy-client jar 3.0.9.Final

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.1.0