{"action":"opened","issue":{"url":"https://api.github.com/repos/Turfjs/turf-distance/issues/12","labels_url":"https://api.github.com/repos/Turfjs/turf-distance/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Turfjs/turf-distance/issues/12/comments","events_url":"https://api.github.com/repos/Turfjs/turf-distance/issues/12/events","html_url":"https://github.com/Turfjs/turf-distance/issues/12","id":92941938,"number":12,"title":"Add other units such as Nautical Miles, Meters, Feet etc.","user":{"login":"cgdnorth","id":1376595,"avatar_url":"https://avatars.githubusercontent.com/u/1376595?v=3","gravatar_id":"","url":"https://api.github.com/users/cgdnorth","html_url":"https://github.com/cgdnorth","followers_url":"https://api.github.com/users/cgdnorth/followers","following_url":"https://api.github.com/users/cgdnorth/following{/other_user}","gists_url":"https://api.github.com/users/cgdnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/cgdnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgdnorth/subscriptions","organizations_url":"https://api.github.com/users/cgdnorth/orgs","repos_url":"https://api.github.com/users/cgdnorth/repos","events_url":"https://api.github.com/users/cgdnorth/events{/privacy}","received_events_url":"https://api.github.com/users/cgdnorth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T22:01:06Z","updated_at":"2015-07-03T22:01:06Z","closed_at":null,"body":"Could you add more units including Nautical Miles, Meters & Feet:\r\n\r\n```javascript\r\nswitch(units) {\r\n    case 'miles':\r\n      R = 3960;\r\n      break;\r\n    case 'nauticalmiles':\r\n      R = 3441.145;\r\n      break;\r\n    case 'feet':\r\n      R = 20908793;\r\n      break;\r\n    case 'kilometers':\r\n    case 'kilometres':\r\n      R = 6373;\r\n      break;\r\n    case 'meters':\r\n    case 'metres':\r\n      R = 6373000;\r\n      break;\r\n    case 'degrees':\r\n      R = 57.2957795;\r\n      break;\r\n    case 'radians':\r\n      R = 1;\r\n      break;\r\n    case undefined:\r\n      R = 6373;\r\n      break;\r\n    default:\r\n      throw new Error('unknown option given to \"units\"');\r\n  }\r\n```"}}