{"id":24926748,"url":"https://github.com/michaelwp/js-distance","last_synced_at":"2025-03-28T12:26:18.486Z","repository":{"id":57283022,"uuid":"358446672","full_name":"michaelwp/js-distance","owner":"michaelwp","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-25T15:40:40.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T12:53:11.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/michaelwp.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}},"created_at":"2021-04-16T02:00:27.000Z","updated_at":"2021-04-25T15:40:42.000Z","dependencies_parsed_at":"2022-09-17T13:52:17.934Z","dependency_job_id":null,"html_url":"https://github.com/michaelwp/js-distance","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/michaelwp%2Fjs-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fjs-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwp","download_url":"https://codeload.github.com/michaelwp/js-distance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246028445,"owners_count":20712017,"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":[],"created_at":"2025-02-02T12:53:16.149Z","updated_at":"2025-03-28T12:26:18.461Z","avatar_url":"https://github.com/michaelwp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-distance v1.0.0\n\nIni adalah package nodejs sederhana untuk menghitung jarak antara dua titik koordinat latitude dan longitude.\n\n### Contoh penggunaan\n\n```javascript\nconst jsDistance = require(\"./js-distance\");\n\nconst jsDistanceObj = new jsDistance(\n    -6.2973856, // origin latitude\n    106.6388177, // origin longitude\n    -6.3027637, // destination latitude\n    106.6410986 // destination longitude\n)\n\nconsole.log(jsDistanceObj.count().toMiles()); // to miles (default)\nconsole.log(jsDistanceObj.count().toKilometre()); // to kilometre\n```\n#### Hasil\n```text\n0.5238991320272929 mil\n0.8431339247333317 km\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fjs-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwp%2Fjs-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fjs-distance/lists"}