{"id":13419200,"url":"https://github.com/OpendataCH/Transport","last_synced_at":"2025-03-15T05:30:32.432Z","repository":{"id":2639872,"uuid":"3629063","full_name":"OpendataCH/Transport","owner":"OpendataCH","description":"Swiss public transport API","archived":false,"fork":false,"pushed_at":"2024-06-25T19:41:43.000Z","size":11899,"stargazers_count":241,"open_issues_count":51,"forks_count":50,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-07-31T22:46:14.463Z","etag":null,"topics":["php","silex","transport-api"],"latest_commit_sha":null,"homepage":"http://transport.opendata.ch/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpendataCH.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2012-03-05T16:41:04.000Z","updated_at":"2024-07-04T11:35:10.000Z","dependencies_parsed_at":"2023-01-13T12:30:15.219Z","dependency_job_id":"e4e328ed-3e05-4699-af81-91aa6f0a3d2a","html_url":"https://github.com/OpendataCH/Transport","commit_stats":{"total_commits":689,"total_committers":28,"mean_commits":"24.607142857142858","dds":"0.14804063860667638","last_synced_commit":"ab22f3935fe5d21f0749f50dff5fa2a0641d07f0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2FTransport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2FTransport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2FTransport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2FTransport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpendataCH","download_url":"https://codeload.github.com/OpendataCH/Transport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243521278,"owners_count":20304186,"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","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":["php","silex","transport-api"],"created_at":"2024-07-30T22:01:12.672Z","updated_at":"2025-03-15T05:30:32.410Z","avatar_url":"https://github.com/OpendataCH.png","language":"PHP","funding_links":[],"categories":["PHP","Projects","Dienstprogramme \u0026 Services"],"sub_categories":["Public Transport","Daten \u0026 Grenzen"],"readme":"\u003e **The backend of the Transport API changed on 31 July 2017.** [Read more on opendata.ch](https://opendata.ch/2017/06/search-ch-rettet-transport-opendata-ch/).\n\n# Transport API\n\n[![Build](https://github.com/OpendataCH/Transport/workflows/Build/badge.svg)](https://github.com/OpendataCH/Transport/actions)\n\nThe Transport API allows interested developers to build their own applications using public timetable data, whether they're on the web, the desktop or mobile devices.\n\nFeel free to fork this project implement your own ideas or send pull requests.\n\n## Installation\n\nYou can install the Transport API on your own server, however we recommend the usage of [transport.opendata.ch](http://transport.opendata.ch/).\n\n```\n$ git clone git://github.com/OpendataCH/Transport.git transport\n$ cd transport\n$ composer install\n```\n\nAlso make sure, the directory ```transport/var/``` is writable.\n\nIf you cloned the repository inside your document root, the API is now accessible at [http://localhost/transport/web/api.php/v1/](http://localhost/transport/web/api.php/v1/locations?query=Basel). However we recommend setting the document root to ```transport/web/``` and using the provided ```.htaccess``` to route API requests to ```api.php```.\n\nOr you can start it with the PHP's built-in webserver (not recommended for a production setup, but the easy way to get started locally)\n\n```\nphp -S localhost:8000\n```\n\nAnd then access it with [http://localhost:8000/web/api.php](http://localhost:8000/web/api.php)\n\n### Configuration\n\nTo define your own configuration for the API copy the file ```config.php.sample``` to ```config.php``` and override the variables you want to change.\n\n### Statistics\n\nYou can get some basic statistics for the API by configuring a Redis server in your configuration (```$redis```) and have a look at [http://localhost/transport/web/stats.php](http://localhost/transport/web/stats.php).\n\n## Development\n\nXSD for the XML Fahrplan API is available here: [hafasXMLInterface.xsd](hafasXMLInterface.xsd)\n\n## Troubleshooting\n\n### Missing package php-xml\n\nIf you're running Ubuntu and `composer install` produces the error message\n\n    Your requirements could not be resolved to an installable set of packages.\n\nyou can try to install the package `php-xml` using the command\n\n    sudo apt install php-xml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpendataCH%2FTransport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpendataCH%2FTransport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpendataCH%2FTransport/lists"}