{"id":17087953,"url":"https://github.com/dsantosmerino/odometex","last_synced_at":"2025-04-12T22:01:38.861Z","repository":{"id":62430139,"uuid":"116059935","full_name":"dsantosmerino/odometex","owner":"dsantosmerino","description":"Simple distance comparisons for Elixir.","archived":false,"fork":false,"pushed_at":"2018-10-30T21:25:13.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T16:05:42.671Z","etag":null,"topics":["distances","elixir","elixir-library","hex","misc"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/odometex","language":"Elixir","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/dsantosmerino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-02T21:41:34.000Z","updated_at":"2018-10-30T21:25:15.000Z","dependencies_parsed_at":"2022-11-01T19:47:24.485Z","dependency_job_id":null,"html_url":"https://github.com/dsantosmerino/odometex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fodometex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fodometex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fodometex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fodometex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsantosmerino","download_url":"https://codeload.github.com/dsantosmerino/odometex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339226,"owners_count":21087215,"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":["distances","elixir","elixir-library","hex","misc"],"created_at":"2024-10-14T13:35:32.955Z","updated_at":"2025-04-12T22:01:38.833Z","avatar_url":"https://github.com/dsantosmerino.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Odometex\nSimple distance comparisons for Elixir.\n\n**Note:** Unit length -\u003e meters\n\n## Installation\n```elixir\ndef deps do\n  [\n    {:odometex, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Usage\nTo compare distances with some global references.\n```elixir\n  Odometex.compare(20)\n  # =\u003e [\n  #   %Odometex.Result{label: \"Bowling lane\", meters: 19, times: 1.052632},\n  #   %Odometex.Result{label: \"Blue Whale (female)\", meters: 25, times: 0.8},\n  #   %Odometex.Result{label: \"Basketball court\", meters: 28, times: 0.714286},\n  #   %Odometex.Result{label: \"Football pitch\", meters: 105, times: 0.190476},\n  #   %Odometex.Result{\n  #     label: \"Passeig de Gràcia, Barcelona\",\n  #     meters: 1300,\n  #     times: 0.015385\n  #   }\n  # ]\n\n  # It supports order and limit options\n  Odometex.compare(20, order: :desc, limit: 5)\n  # =\u003e [\n  #   %Odometex.Result{label: \"Great Wall\", meters: 8851000, times: 2.0e-6},\n  #   %Odometex.Result{label: \"Amazon River\", meters: 6992000, times: 3.0e-6},\n  #   %Odometex.Result{label: \"Nile\", meters: 6853000, times: 3.0e-6},\n  #   %Odometex.Result{label: \"Sahara\", meters: 4800000, times: 4.0e-6},\n  #   %Odometex.Result{label: \"Route 66\", meters: 3945000, times: 5.0e-6}\n  # ]\n```\n\nDocumentation can be found on [HexDocs](https://hexdocs.pm/odometex/api-reference.html).\n\n## Contributing\nDo you know any cool distance/reference that isn't listed [here](config/distances.json)? It isn't also on the open issues?\nPlease create a new issue or submit a PR, we will be happy to receive it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsantosmerino%2Fodometex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsantosmerino%2Fodometex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsantosmerino%2Fodometex/lists"}