GithubHelp home page GithubHelp logo

morristech / transportapisdk.java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haikaroseworx/transportapisdk.java

0.0 1.0 0.0 788 KB

Java SDK for the WhereIsMyTransport Transport API.

Home Page: https://developer.whereismytransport.com

License: MIT License

Java 100.00%

transportapisdk.java's Introduction

TransportApiSdk - WhereIsMyTransport API Client Library for Java

Version

The official Java SDK for the WhereIsMyTransport API.

Access to the platform is completely free, so for more information and to get credentials, just visit the developer portal.

Usage

// Setup your credentials.
String clientId = "CLIENT_ID";
String clientSecret = "CLIENT_SECRET";

// Define the api client.
TransportApiClient defaultClient = new TransportApiClient(new TransportApiClientSettings(clientId, clientSecret));

// Make an api call.
TransportApiResult<List<Agency>> agencies = defaultClient.getAgencies(AgencyQueryOptions.defaultQueryOptions());

// Do fancy things with the results.

Features

The following end-points are available:

  • POST api/journeys
  • GET api/journeys/{id}
  • GET api/journeys/{id}/itineraries/{id}
  • GET api/agencies
  • GET api/agencies/{id}
  • GET api/stops
  • GET api/stops/{id}
  • GET api/stops/{id}/timetables
  • GET api/lines
  • GET api/lines/{id}
  • GET api/lines/{id}/timetables
  • GET api/fareproducts
  • GET api/fareproducts/{id}

Installation

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>com.whereismytransport.transportapisdk</groupId>
  <artifactId>transportapisdk</artifactId>
  <version>1.0.1</version>
</dependency>

or Gradle:

compile 'com.whereismytransport.transportapisdk:transportapisdk:1.0.1'

Author

Chris King - https://twitter.com/crkingza

License

TransportApiSdk is available under the MIT license. See the LICENSE file for more info.

transportapisdk.java's People

Contributors

chrisk1ng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.