tisseoLib

Library to simplify calls to the Tisséo API in Java / Kotlin.

View project on GitHub

Tisséo API Library download_latest-release

Library to simplify calls to the Tisséo API in Java.

Information before usage

This library is neither created nor approved by Tisséo.

The Tisséo API is under ODbL license. More information (french)

You are responsible for requests made with this library.

Add on project

In your build.gradle put :

repositories {
    jcenter()
}

dependencies {
    implementation 'fr.docjyJ.tisseoLib:tisseoLib:1.2.3'
}

Repository/Download Jar

Documentation

See the Library documentation here

Refer to the documentation provided by Tisséo (French and English) for resources, parameters, responses and as well as how to obtain a key.

https://data.toulouse-metropole.fr/explore/dataset/api-temps-reel-tisseo/.

Usage Example

JAVA

class Exemple{
    public StopAreaResponse stopArea() throws ServerException, ClientException {
        //Create request object
        StopAreaRequest request = new StopAreaRequest(API_KEY);

        //Set parameters
        request.setLineId("11821949021892003");
        request.setDisplayCoordXY(true);

        //Execute request
        return request.execute();
    }
}

More example here.

KOTLIN

fun stopArea() = StopAreaRequest(API_KEY) //Create request object
    .apply { //Set parameters
        lineId = "11821949021892003"
        displayCoordXY = true
    }
    .execute() //Execute request

More example here.