{"id":16065878,"url":"https://github.com/marcoroth/spritpreisrechner-ruby","last_synced_at":"2026-05-17T01:47:37.947Z","repository":{"id":56896696,"uuid":"150318147","full_name":"marcoroth/spritpreisrechner-ruby","owner":"marcoroth","description":"Ruby Wrapper for the e-control.at Spritpreisrechner HTTP API","archived":false,"fork":false,"pushed_at":"2018-11-24T11:57:01.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T13:35:16.209Z","etag":null,"topics":["api","json","ruby","spritpreisrechner","spritpreisrechner-api","wrapper"],"latest_commit_sha":null,"homepage":"https://www.spritpreisrechner.at/","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/marcoroth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-25T19:24:51.000Z","updated_at":"2024-05-08T12:48:07.000Z","dependencies_parsed_at":"2022-08-21T01:50:10.592Z","dependency_job_id":null,"html_url":"https://github.com/marcoroth/spritpreisrechner-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marcoroth/spritpreisrechner-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fspritpreisrechner-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fspritpreisrechner-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fspritpreisrechner-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fspritpreisrechner-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoroth","download_url":"https://codeload.github.com/marcoroth/spritpreisrechner-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fspritpreisrechner-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264952358,"owners_count":23688062,"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","json","ruby","spritpreisrechner","spritpreisrechner-api","wrapper"],"created_at":"2024-10-09T05:21:20.662Z","updated_at":"2026-05-17T01:47:32.928Z","avatar_url":"https://github.com/marcoroth.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spritpreisrechner\n![](https://api.travis-ci.com/marcoroth/spritpreisrechner-ruby.svg?branch=master)\n\nThis is a Ruby Wrapper for the [e-Control.at Spritpreisrechner HTTP API](https://www.spritpreisrechner.at). Have a look at the [Swagger docs](https://api.e-control.at/sprit/1.0/doc/index.html?url=https://api.e-control.at/sprit/1.0/api-docs%3Fgroup%3Dpublic-api) for detailed info about the API.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'spritpreisrechner'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install spritpreisrechner\n\n## Usage\n\nGetting stations by LAT/LNG coordinates. The available Fuel Types are: `DIE` , `SUP` and `GAS`. The `closed` parameter is optional.\n\n```ruby\nresponse = Spritpreisrechner::Station.by_address(lat: 48.208, lng: 16.373, fuel_type: 'DIE', closed: 'true')\n# =\u003e #\u003cSpritpreisrechner::Response @stations=[#\u003cSpritpreisrechner::Station @id=692206, @name=\"SPRIT-INN\" ...\u003e, #\u003cSpritpreisrechner::Station @id=5093, @name=\"Turmöl\" ...\u003e, ... ] ... \u003e\n\n```\n\nGetting stations by region:\n\n```ruby\nresponse = Spritpreisrechner::Station.by_region(code: 1, region_type: \"BL\", fuel_type: 'DIE', closed: 'true')\n# =\u003e #\u003cSpritpreisrechner::Response @stations=[#\u003cSpritpreisrechner::Station @id=394, @name=\"Avanti\" ...\u003e, #\u003cSpritpreisrechner::Station @id=7586, @name=\"Landestankstelle Rdf. Partner Luisser\" ...\u003e, ... ] ... \u003e\n\n```\n\n\nGetting all available regions:\n\n```ruby\nregions = Spritpreisrechner::Region.all\n# =\u003e [#\u003cSprtpreisrechner::Region @code=1, @type=\"BL\", @name=\"Burgenland\" ...\u003e, #\u003cSpritpreisrechner::Region @code=2, @type=\"BL\", @name=\"Kärnten\" ...\u003e ...]\n```\n\nGetting a specific region:\n\n```ruby\nregion = Spritpreisrechner::Region.find(1)\n# =\u003e #\u003cSprtpreisrechner::Region @code=1, @type=\"BL\", @name=\"Burgenland\" ...\u003e\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/marcoroth/spritpreisrechner.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## More Information\n\n[Spritpreisrechner Website](https://www.spritpreisrechner.at/)\n\n[RubyGems](https://rubygems.org/gems/spritpreisrechner)\n\n[Source Code](https://github.com/marcoroth/spritpreisrechner-ruby)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fspritpreisrechner-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoroth%2Fspritpreisrechner-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fspritpreisrechner-ruby/lists"}