{"id":22018186,"url":"https://github.com/sahlhoff/afar","last_synced_at":"2025-07-21T11:33:08.624Z","repository":{"id":57174009,"uuid":"62851332","full_name":"sahlhoff/afar","owner":"sahlhoff","description":"Calculate the distance (km) between two latitude and longitude points.","archived":false,"fork":false,"pushed_at":"2024-03-12T15:11:51.000Z","size":2,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T20:52:36.947Z","etag":null,"topics":["distance","latitude","longitude-points"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sahlhoff.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2016-07-08T02:07:10.000Z","updated_at":"2020-06-02T16:13:11.000Z","dependencies_parsed_at":"2025-05-07T03:42:57.131Z","dependency_job_id":null,"html_url":"https://github.com/sahlhoff/afar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sahlhoff/afar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahlhoff%2Fafar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahlhoff%2Fafar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahlhoff%2Fafar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahlhoff%2Fafar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sahlhoff","download_url":"https://codeload.github.com/sahlhoff/afar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahlhoff%2Fafar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266291866,"owners_count":23906348,"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":["distance","latitude","longitude-points"],"created_at":"2024-11-30T05:10:50.055Z","updated_at":"2025-07-21T11:33:08.605Z","avatar_url":"https://github.com/sahlhoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Afar\n\n  Calculate the distance (km) between two latitude and longitude points.\n\n## Install\n  ~~~bash\n  npm i afar\n  ~~~\n\n## Usage\n  ~~~js\n  var afar = require('afar')\n\n  // SF lat/lon\n  var lat1 = '37.7749';\n  var lon1 = '122.4194';\n\n  // LA lat/lon\n  var lat2 = '34.0522';\n  var lon2 = '118.2437';\n\n  afar(lat1, lon1, lat2, lon2)\n  // =\u003e 559.1205770615537 \n\n  ~~~    \n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahlhoff%2Fafar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsahlhoff%2Fafar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahlhoff%2Fafar/lists"}