{"id":21396882,"url":"https://github.com/stklcode/juraclient","last_synced_at":"2025-08-01T23:09:26.740Z","repository":{"id":15036758,"uuid":"77469976","full_name":"stklcode/juraclient","owner":"stklcode","description":"Java client for URA based public transport APIs","archived":false,"fork":false,"pushed_at":"2025-07-29T05:34:57.000Z","size":343,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-29T07:42:26.699Z","etag":null,"topics":["connector","java","public-transport","ura"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stklcode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-27T16:53:17.000Z","updated_at":"2025-07-29T05:34:59.000Z","dependencies_parsed_at":"2024-03-23T17:46:04.897Z","dependency_job_id":"4890ae6e-aecd-4024-8553-e45c93c4ed29","html_url":"https://github.com/stklcode/juraclient","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/stklcode/juraclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stklcode%2Fjuraclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stklcode%2Fjuraclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stklcode%2Fjuraclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stklcode%2Fjuraclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stklcode","download_url":"https://codeload.github.com/stklcode/juraclient/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stklcode%2Fjuraclient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268310796,"owners_count":24230185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connector","java","public-transport","ura"],"created_at":"2024-11-22T14:30:16.294Z","updated_at":"2025-08-01T23:09:26.686Z","avatar_url":"https://github.com/stklcode.png","language":"Java","readme":"# jURAclient \n[![CI](https://github.com/stklcode/juraclient/actions/workflows/ci.yml/badge.svg)](https://github.com/stklcode/juraclient/actions/workflows/ci.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=de.stklcode.pubtrans%3Ajuraclient\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=de.stklcode.pubtrans%3Ajuraclient)\n[![Javadocs](https://www.javadoc.io/badge/de.stklcode.pubtrans/juraclient.svg)](https://www.javadoc.io/doc/de.stklcode.pubtrans/juraclient)\n[![Maven Central Version](https://img.shields.io/maven-central/v/de.stklcode.pubtrans/juraclient.svg)](https://central.sonatype.com/artifact/de.stklcode.pubtrans/juraclient)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/stklcode/juraclient/blob/master/LICENSE.txt)\n\nJava client for URA based public transport APIs.\n\nThis client allows to simply connect any Java application to the public transport API to implement a monitor for the \nlocal bus station or any other custom queries. API versions 1.x and 2.x are supported.\n\n## Supported versions\nVersion 2.x requires Java 11 or later.\nIt also contains some new features and allows configuration using a dedicated configuration object.\n\nVersion 1.x requires Java 8 or later.\nThis version is no longer supported and will not receive any future updates.\n\n## Usage Examples\n\n### Initialization\n```java\n// Instantiate the client.\nUraClient ura = new UraClient(\"https://ura.example.com\");\n\n// Initialize the API with non-standard endpoints.\nUraClient ura = new UraClient(\"https://ura.example.com\", \n                              \"interfaces/ura/instant_V2\", \n                              \"interfaces/ura/stream_V2\");\n\n// Initialization with configuration builder (Client v2.x)\nUraClient ura = new UraClient(\n    UraClientConfiguration.forBaseURL(\"https://ura.example.com\")\n                          .withInstantPath(\"interfaces/ura/instant_V2\")\n                          .withStreamPath(\"interfaces/ura/stream_V2\")\n                          .withConnectTimeout(Duration.ofSeconds(2))\n                          .withTimeout(Duration.ofSeconds(10))\n                          .build()\n);\n```\n\n### List Stops\n\n```java\n// List ALL available stops\nList\u003cStop\u003e stops = ura.getStops();\n\n// List available stops in a 200m radius around given coordinates\nList\u003cStop\u003e stops = ura.forPosition(51.51009, -0.1345734, 200)\n                      .getStops();\n\n```\n\n### Get Trips\n\n```java\n// Get next 10 trips for given stops and lines in a single direction (all filters optional)\nList\u003cTrip\u003e trips = ura.forStops(\"100000\")\n                      .forLines(\"25\", \"35\")\n                      .forDirection(1)\n                      .getTrips(10);\n\n// Get trips from given stop towards your destination\nList\u003cTrip\u003e trips = ura.forStopsByName(\"Piccadilly Circus\")\n                      .towards(\"Marble Arch\")\n                      .getTrips();\n```\n\n### Get Messages\n\n```java\n// Get next 10 trips for given stops and lines in a single direction (all filters optional)\nList\u003cMessage\u003e msgs = ura.forStops(\"100000\")\n                        .getMessages();\n```\n\n## Maven Artifact\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ede.stklcode.pubtrans\u003c/groupId\u003e\n    \u003cartifactId\u003ejuraclient\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.9\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## License\n\nThe project is licensed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstklcode%2Fjuraclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstklcode%2Fjuraclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstklcode%2Fjuraclient/lists"}