{"id":16811941,"url":"https://github.com/dcousens/haversine-distance","last_synced_at":"2025-04-06T14:12:28.970Z","repository":{"id":31515771,"uuid":"35080156","full_name":"dcousens/haversine-distance","owner":"dcousens","description":"Haversine formula in Javascript. In meters. Nothing more.","archived":false,"fork":false,"pushed_at":"2024-06-07T06:40:55.000Z","size":60,"stargazers_count":75,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-19T02:06:37.456Z","etag":null,"topics":["haversine","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dcousens.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-05T05:39:49.000Z","updated_at":"2024-10-18T12:20:05.000Z","dependencies_parsed_at":"2024-06-18T14:10:59.119Z","dependency_job_id":null,"html_url":"https://github.com/dcousens/haversine-distance","commit_stats":{"total_commits":46,"total_committers":9,"mean_commits":5.111111111111111,"dds":0.5652173913043479,"last_synced_commit":"00ed2643aa2082299f52f94eaa90a670bb3406b8"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fhaversine-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fhaversine-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fhaversine-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fhaversine-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcousens","download_url":"https://codeload.github.com/dcousens/haversine-distance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492557,"owners_count":20947545,"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":["haversine","javascript"],"created_at":"2024-10-13T10:20:07.112Z","updated_at":"2025-04-06T14:12:28.954Z","avatar_url":"https://github.com/dcousens.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haversine-distance\n[![Version](http://img.shields.io/npm/v/haversine-distance.svg)](https://www.npmjs.org/package/haversine-distance)\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nHaversine formula in Javascript, in meters, nothing else\n\n\n## Example\n\n### Import\n\n```javascript\nconst haversine = require('haversine-distance')\n// or\nimport haversine from 'haversine-distance'\n```\n\n### Usage\n\n```javascript\nconst a = { latitude: 37.8136, longitude: 144.9631 }\nconst b = { latitude: 33.8650, longitude: 151.2094 }\n\nconsole.log(haversine(a, b)) // 714504.18 (in meters)\n```\n\nAlternative forms such as `lat`, `lng` and `lon` work too, with mixed support:\n\n```javascript\nconst a = { lat: 37.8136, lng: 144.9631 }\nconst b = { lat: 33.8650, lon: 151.2094 }\n\nconsole.log(haversine(a, b)) // 714504.18 (in meters)\n```\n\n### GeoJSON support\n\n```javascript\nconst a = [144.9631, 37.8136]\nconst b = [151.2094, 33.865]\n\nconsole.log(haversine(a, b)) // 714504.18 (in meters)\n```\n\n\n## LICENSE [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcousens%2Fhaversine-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcousens%2Fhaversine-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcousens%2Fhaversine-distance/lists"}