java.lang.Object
de.stklcode.pubtrans.ura.UraClient
All Implemented Interfaces:
Serializable

public class UraClient extends Object implements Serializable
Client for URA based public transport API.

This client features builder pattern style query functionality to obtain Trip and Stop information.

Author:
Stefan Kalscheuer
See Also:
  • Constructor Details

    • UraClient

      public UraClient(UraClientConfiguration config)
      Constructor from UraClientConfiguration.
      Parameters:
      config - The configuration.
      Since:
      2.0
    • UraClient

      public UraClient(String baseURL)
      Constructor with base URL and default API paths.
      Parameters:
      baseURL - The base URL (with protocol, without trailing slash).
    • UraClient

      public UraClient(String baseURL, String instantPath, String streamPath)
      Constructor with base URL and custom API paths.
      Parameters:
      baseURL - The base URL (including protocol).
      instantPath - The path for instant requests.
      streamPath - The path for stream requests.
  • Method Details