{"id":19521894,"url":"https://github.com/renuo/swiss_village_directory","last_synced_at":"2025-04-26T09:32:01.448Z","repository":{"id":59157001,"uuid":"62703268","full_name":"renuo/swiss_village_directory","owner":"renuo","description":"Provides a wrapper around the geo admin data set of the Ortschaftenverzeichnis","archived":false,"fork":false,"pushed_at":"2025-03-31T19:03:12.000Z","size":353,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-20T10:09:45.374Z","etag":null,"topics":["postleitzahl","r-josuaschmid","switzerland","zip-code"],"latest_commit_sha":null,"homepage":null,"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/renuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-07-06T08:09:49.000Z","updated_at":"2025-03-31T19:03:15.000Z","dependencies_parsed_at":"2024-01-03T09:52:51.851Z","dependency_job_id":"fcf5437f-b86f-4bea-868e-5ca0ec0f67c9","html_url":"https://github.com/renuo/swiss_village_directory","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.3928571428571429,"last_synced_commit":"f311a9e12784c5ad5837c1acb435e35aaf57d031"},"previous_names":["renuo/swiss_village_directory","renuo/swiss-village-directory"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renuo%2Fswiss_village_directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renuo%2Fswiss_village_directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renuo%2Fswiss_village_directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renuo%2Fswiss_village_directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renuo","download_url":"https://codeload.github.com/renuo/swiss_village_directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250559544,"owners_count":21450167,"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":["postleitzahl","r-josuaschmid","switzerland","zip-code"],"created_at":"2024-11-11T00:35:39.644Z","updated_at":"2025-04-26T09:32:01.441Z","avatar_url":"https://github.com/renuo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/renuo/swiss_village_directory.svg?branch=master)](https://travis-ci.org/renuo/swiss_village_directory)\n\n# Swiss Village Directory\n\nThis gem provides a data set of all swiss villages taken out of the\n\"Ortschaftenverzeichnis\" ([ch.swisstopo-vd.ortschaftenverzeichnis_plz][4])\nThe data set made available through a ruby object called [`Village`](https://github.com/renuo/swiss-village-directory/blob/master/lib/swiss_village_directory/village.rb) contains\nthe following fields.\n\n* name\n* zip_code\n* one_digit_spare\n* commune\n* canton\n* latitude (WGS84)\n* longitude (WGS84)\n\nThe data source can be downloaded as CSV here: [PLZO_CSV_WGS84.zip][5]\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'swiss_village_directory'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install swiss_village_directory\n\n## Usage\n\nRequire the library\n\n```ruby\nrequire 'swiss_village_directory'\n```\n\nFind by attributes:\n\n```ruby\nSwissVillageDirectory.repository.find_all_by(name: 'Riedt b. Erlen')\n```\n\nor implement your own search logic\n\n```ruby\nSwissVillageDirectory.villages.find { |v| v.name == 'Riedt b. Erlen' }\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec` to run the tests.\nYou can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n## Contributing\n\nIf you would like to contribute, you're very welcome to.\n\nPlease follow these instructions:\n\n* [Contributing][1]\n* [Code of Conduct][2]\n\n## License\n\nCopyright (c) 2016 [Renuo AG]\n\n[MIT License][3]\n\n[1]: CONTRIBUTING.md\n[2]: CODE_OF_CONDUCT.md\n[3]: LICENSE\n\n[4]: https://data.geo.admin.ch/ch.swisstopo-vd.ortschaftenverzeichnis_plz/\n[5]: https://data.geo.admin.ch/ch.swisstopo-vd.ortschaftenverzeichnis_plz/ortschaftenverzeichnis_plz/ortschaftenverzeichnis_plz_4326.csv.zip\n\n[Renuo AG]: https://www.renuo.ch\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenuo%2Fswiss_village_directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenuo%2Fswiss_village_directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenuo%2Fswiss_village_directory/lists"}