{"id":24559493,"url":"https://github.com/emrearmagan/hvv-rest-api","last_synced_at":"2025-07-28T10:35:25.425Z","repository":{"id":111474827,"uuid":"191667082","full_name":"emrearmagan/Hvv-REST-API","owner":"emrearmagan","description":"Hvv REST API for Go","archived":false,"fork":false,"pushed_at":"2019-06-13T01:44:42.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-23T06:16:43.012Z","etag":null,"topics":["api","client","go","golang","hamburg","hbt","hvv","rest-api","traffic"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/emrearmagan.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-06-13T01:14:45.000Z","updated_at":"2023-04-04T13:39:09.000Z","dependencies_parsed_at":"2023-04-09T07:01:01.075Z","dependency_job_id":null,"html_url":"https://github.com/emrearmagan/Hvv-REST-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrearmagan%2FHvv-REST-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrearmagan%2FHvv-REST-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrearmagan%2FHvv-REST-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrearmagan%2FHvv-REST-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emrearmagan","download_url":"https://codeload.github.com/emrearmagan/Hvv-REST-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243922397,"owners_count":20369391,"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":["api","client","go","golang","hamburg","hbt","hvv","rest-api","traffic"],"created_at":"2025-01-23T06:16:45.357Z","updated_at":"2025-03-16T19:42:07.093Z","avatar_url":"https://github.com/emrearmagan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hvv REST API for Go\nA RESTful API example for Hvv. Documentation can be found at: https://geofox.hvv.de/gti/doc/index.jsp\n\n## Requirements\n- Key and Username provided by HBT\n\n\n## Installation\nThe easiest way to use the HVV API in your Go project is to install it using **go get**:\n```go\ngo get https://github.com/emrearmagan/Hvv-REST-API\n```\n\nBefore running, you should set the config values in [config.go](https://github.com/emrearmagan/Hvv-REST-API/blob/master/config/config.go)\n```go\nfunc GetDeparuteRequest() *HVVDepartureListRequest {\n\treturn \u0026HVVDepartureListRequest{\n\t\tOrigin:        Station{Name: \"ORIGIN\", Type: \"STATION\", ID: \"Master:41022\"},\n\t\tDateTime:      DateTime{Date: \"13.06.2019\", Time: \"14:00\"},\n\t\tLanguage:      \"de\",\n\t\tMaxList:       30,\n\t\tServiceTypes:  []string{\"BUS\", \"ZUG\", \"FAEHRE\"},\n\t\tMaxTimeOffset: 120,\n\t\tApiKey:        \"YOUR_KEY\",\n\t\tUsername:      \"YOUR_USERNAME\",\n\t}\n}\n\n\nfunc GetRouteRequest() *HVVRequest {\n\treturn \u0026HVVRequest{\n\t\tOrigin: Station{Name: \"ORIGIN\"},\n\t\tDestinations: Station{Name: \"DESTINATION\"},\n\t\tDateTime: DateTime{Date: \"12.06.2019\", Time: \"14:00\"},\n\t\tLanguage: \"de\",\n\t\tMaxList:  3,\n\t\tApikey:   \"YOUR_KEY\",\n\t\tUsername: \"YOUR_USERNAME\",\n\t}\n}\n```\n\n## Example\nHere is a quick example on how to get started.\nCreate a new Client and get your Configs:\n````go\nimport \"github.com/messagebird/go-rest-api\"\n\nclient := app.NewClient()\nrequest := config.GetRouteRequest()\n*OR*\nrequest := config.GetDeparuteRequest\n````\nNow you can make simple API calls:\n`````go\nrequest, err := c.GetRoute(request)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n*OR*\n\t\nresp, err := c.DepartureList(request)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n        .\n\t.\n\t.\n\t.\n\t.\n`````\n\n## Author\nEmre Armagan, emre.armagan@hotmail.de","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrearmagan%2Fhvv-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femrearmagan%2Fhvv-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrearmagan%2Fhvv-rest-api/lists"}