{"id":17540162,"url":"https://github.com/kiliankoe/dvbrb","last_synced_at":"2025-07-13T20:35:42.046Z","repository":{"id":56844423,"uuid":"66735685","full_name":"kiliankoe/dvbrb","owner":"kiliankoe","description":"🚌 Query Dresden's public transport system for current bus- and tramstop data in ruby","archived":false,"fork":false,"pushed_at":"2017-02-19T21:48:49.000Z","size":173,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T22:29:16.704Z","etag":null,"topics":["dresden","dvb","public-transportation","vvo"],"latest_commit_sha":null,"homepage":"http://www.rubydoc.info/gems/dvb/","language":"Ruby","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/kiliankoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-27T21:11:28.000Z","updated_at":"2020-01-06T19:53:10.000Z","dependencies_parsed_at":"2022-09-09T02:22:59.867Z","dependency_job_id":null,"html_url":"https://github.com/kiliankoe/dvbrb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kiliankoe/dvbrb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fdvbrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fdvbrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fdvbrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fdvbrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiliankoe","download_url":"https://codeload.github.com/kiliankoe/dvbrb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2Fdvbrb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200540,"owners_count":23726846,"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":["dresden","dvb","public-transportation","vvo"],"created_at":"2024-10-20T22:08:34.324Z","updated_at":"2025-07-13T20:35:42.027Z","avatar_url":"https://github.com/kiliankoe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DVB\n\n[![Gem](https://img.shields.io/gem/v/dvb.svg?style=flat-square)](https://rubygems.org/gems/dvb) [![Travis](https://img.shields.io/travis/kiliankoe/dvbrb.svg?style=flat-square)](https://travis-ci.org/kiliankoe/dvbrb/builds) [![GitHub issues](https://img.shields.io/github/issues/kiliankoe/dvbrb.svg?style=flat-square)](https://github.com/kiliankoe/dvbrb/issues) [![Gemnasium](https://img.shields.io/gemnasium/kiliankoe/dvbrb.svg?style=flat-square)](https://gemnasium.com/github.com/kiliankoe/dvbrb)\n\nThis is an unofficial gem giving you a few options to query Dresden's public transport system for current bus- and tramstop data.\n\nWant something like this for another language, look [no further](https://github.com/kiliankoe/vvo#libraries) 🙂\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dvb'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dvb\n## Quick Start\n\n```ruby\n# Don't forget to require dvb\nrequire 'dvb'\n\n# Calling the following will return a list of DVB::Departure objects\n# encapsulating information about upcoming departures at the given stop. \n# I've also gone ahead and filtered out departures that do not have \"3\" \n# as their line identifier.\n\ndeps = DVB.monitor('albertplatz').select { |d| d.line == '3' }\nputs deps\n# 3 Coschütz @ 2016-08-29 17:57:58 +0200\n# 3 Wilder Mann @ 2016-08-29 18:03:58 +0200\n# 3 Coschütz @ 2016-08-29 18:07:58 +0200\n# ...\n\n# The second optional parameter sets a time offset into the future, \n# default is 0. The third optional parameter limits the amount of results, \n# default is as many as possible.\n\ndeps = DVB.monitor('albertplatz', 10, 2)\nputs deps\n# 8 Südvorstadt @ 2016-08-29 18:30:00 +0200\n# 6 Wölfnitz @ 2016-08-29 18:31:00 +0200\n\n```\n\n```ruby\n# You can also use dvb to find stops using two different methods. Either\n# look them up by name or via coordinates. DVB::Stop objects include an id, \n# latitude, longitude, name, region and tarif_zones amongst other info.\n\n# The second optional param is the region. It defaults to Dresden.\nstops = DVB.find('helmh', 'Dresden')\nputs stops\n# Helmholtzstraße, Dresden\n\n# The third optional param here is the searchradius in meters. \n# It defaults to 500.\nstops = DVB.find_near(51.063313, 13.746748, 500)\nputs stops\n# Bautzner Straße / Rothenburger Straße, Dresden\n# Albertplatz, Dresden\n# Bahnhof Neustadt, Dresden\n```\n\n## Contributing\n\nPlease don't hesitate [opening an issue](https://github.com/kiliankoe/dvbrb/issues/new) should any questions/bugs/whatever arise.\n\nPull requests are of course just as welcome. If you're interested in adding additional functionality, why not open an issue beforehand so we can discuss how to integrate it best 😊\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n\n## Why?\n\nAt this point I consider writing wrappers for the DVB/VVO APIs as somewhat of an extensive hello-world exercise for myself. I'm trying to get back into Ruby and realized I've never published a gem, so here goes nothing 😄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fdvbrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiliankoe%2Fdvbrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fdvbrb/lists"}