{"id":18395415,"url":"https://github.com/edumucelli/rubybikes","last_synced_at":"2025-04-12T13:45:52.799Z","repository":{"id":76859891,"uuid":"102964236","full_name":"edumucelli/rubybikes","owner":"edumucelli","description":"A set of Bike Sharing System parsers in Ruby","archived":false,"fork":false,"pushed_at":"2017-09-11T21:26:42.000Z","size":968,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-24T10:05:06.790Z","etag":null,"topics":["bike-sharing","crawler","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edumucelli.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":"2017-09-09T15:20:19.000Z","updated_at":"2017-09-09T15:23:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"c38083a5-81e8-431f-9c16-b43ca3eeb482","html_url":"https://github.com/edumucelli/rubybikes","commit_stats":{"total_commits":84,"total_committers":1,"mean_commits":84.0,"dds":0.0,"last_synced_commit":"206af180b549be007d8c6b06669a6b042c9b6460"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumucelli%2Frubybikes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumucelli%2Frubybikes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumucelli%2Frubybikes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumucelli%2Frubybikes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edumucelli","download_url":"https://codeload.github.com/edumucelli/rubybikes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239078281,"owners_count":19577802,"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":["bike-sharing","crawler","ruby"],"created_at":"2024-11-06T02:10:53.539Z","updated_at":"2025-02-16T02:20:55.191Z","avatar_url":"https://github.com/edumucelli.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RubyBikes\n\nRubyBikes was inspired by [PyBikes](https://github.com/eskerda/pybikes).\n\nRubyBikes has two main concepts, _labels_ and _tags_.\n\nFor instance, if you want to get information from the stations in the 'Encicla' (Medellin, Colombia) system, you'd use:\n\n```ruby\nrequire 'rubybikes'\n\nbikes = RubyBikes.new\nencicla = bikes.get({'tag' =\u003e 'encicla'})\nencicla.update\nencicla.stations.each do |station|\n  puts \"#{station.name}, #{station.latitude}, #{station.longitude}, #{station.free}, #{station.bikes}\"\nend\n```\n\nCurrently, RubyBikes supports 270 system tags, i.e., 270 bike-sharing systems around the world.\nFor the complete list of tags, check out documentation, or use the tags method, `puts bikes.tags`.\n\nHowever, generally a set bike-sharing systems belong to the same company, which we call _label_.\n\nIf you want, for instance, get all the systems within JCDecaux' Cyclocity system, which encompasses, 'velib' (Paris, France), 'velov' (Lyon, France), 'sevici' (Sevilla, Spain), etc., you'd use:\n\n```ruby\ninstances = bikes.get({'label' =\u003e 'Cyclocity', 'api_key' =\u003e 'API_KEY'})\n# each 'instance' is a system, i.e., a 'tag' system\ninstances.each do |instance|\n\tinstance.stations.each do |station|\n\t\tputs \"#{station.name}, #{station.latitude}, #{station.longitude}, #{station.free}, #{station.bikes}\"\n\tend\nend\n```\n\nIn this case here, `API_KEY` is required in Cyclocity systems. This is the only system contained in RubyBikes that asks for a `API_KEY`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedumucelli%2Frubybikes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedumucelli%2Frubybikes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedumucelli%2Frubybikes/lists"}