{"action":"created","issue":{"url":"https://api.github.com/repos/Turfjs/turf/issues/729","repository_url":"https://api.github.com/repos/Turfjs/turf","labels_url":"https://api.github.com/repos/Turfjs/turf/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/Turfjs/turf/issues/729/comments","events_url":"https://api.github.com/repos/Turfjs/turf/issues/729/events","html_url":"https://github.com/Turfjs/turf/pull/729","id":227839946,"number":729,"title":"New module @turf/line-offset","user":{"login":"rowanwins","id":6735870,"avatar_url":"https://avatars0.githubusercontent.com/u/6735870?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanwins","html_url":"https://github.com/rowanwins","followers_url":"https://api.github.com/users/rowanwins/followers","following_url":"https://api.github.com/users/rowanwins/following{/other_user}","gists_url":"https://api.github.com/users/rowanwins/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanwins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanwins/subscriptions","organizations_url":"https://api.github.com/users/rowanwins/orgs","repos_url":"https://api.github.com/users/rowanwins/repos","events_url":"https://api.github.com/users/rowanwins/events{/privacy}","received_events_url":"https://api.github.com/users/rowanwins/received_events","type":"User","site_admin":false},"labels":[{"id":333790692,"url":"https://api.github.com/repos/Turfjs/turf/labels/new-module","name":"new-module","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"rowanwins","id":6735870,"avatar_url":"https://avatars0.githubusercontent.com/u/6735870?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanwins","html_url":"https://github.com/rowanwins","followers_url":"https://api.github.com/users/rowanwins/followers","following_url":"https://api.github.com/users/rowanwins/following{/other_user}","gists_url":"https://api.github.com/users/rowanwins/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanwins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanwins/subscriptions","organizations_url":"https://api.github.com/users/rowanwins/orgs","repos_url":"https://api.github.com/users/rowanwins/repos","events_url":"https://api.github.com/users/rowanwins/events{/privacy}","received_events_url":"https://api.github.com/users/rowanwins/received_events","type":"User","site_admin":false},"assignees":[{"login":"rowanwins","id":6735870,"avatar_url":"https://avatars0.githubusercontent.com/u/6735870?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanwins","html_url":"https://github.com/rowanwins","followers_url":"https://api.github.com/users/rowanwins/followers","following_url":"https://api.github.com/users/rowanwins/following{/other_user}","gists_url":"https://api.github.com/users/rowanwins/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanwins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanwins/subscriptions","organizations_url":"https://api.github.com/users/rowanwins/orgs","repos_url":"https://api.github.com/users/rowanwins/repos","events_url":"https://api.github.com/users/rowanwins/events{/privacy}","received_events_url":"https://api.github.com/users/rowanwins/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Turfjs/turf/milestones/8","html_url":"https://github.com/Turfjs/turf/milestone/8","labels_url":"https://api.github.com/repos/Turfjs/turf/milestones/8/labels","id":2508000,"number":8,"title":"4.4.0","description":"New modules, Minor fixes, Patches","creator":{"login":"DenisCarriere","id":550895,"avatar_url":"https://avatars0.githubusercontent.com/u/550895?v=3","gravatar_id":"","url":"https://api.github.com/users/DenisCarriere","html_url":"https://github.com/DenisCarriere","followers_url":"https://api.github.com/users/DenisCarriere/followers","following_url":"https://api.github.com/users/DenisCarriere/following{/other_user}","gists_url":"https://api.github.com/users/DenisCarriere/gists{/gist_id}","starred_url":"https://api.github.com/users/DenisCarriere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenisCarriere/subscriptions","organizations_url":"https://api.github.com/users/DenisCarriere/orgs","repos_url":"https://api.github.com/users/DenisCarriere/repos","events_url":"https://api.github.com/users/DenisCarriere/events{/privacy}","received_events_url":"https://api.github.com/users/DenisCarriere/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2017-05-08T17:50:53Z","updated_at":"2017-05-12T06:47:38Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2017-05-10T23:40:41Z","updated_at":"2017-05-12T12:15:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Turfjs/turf/pulls/729","html_url":"https://github.com/Turfjs/turf/pull/729","diff_url":"https://github.com/Turfjs/turf/pull/729.diff","patch_url":"https://github.com/Turfjs/turf/pull/729.patch"},"body":"# New Module `@turf/line-offset`\r\n\r\n## JSDocs\r\n\r\n```javascript\r\n/**\r\n * Takes a {@link LineString|line} and returns a {@link LineString|line} at offset by the specified distance.\r\n *\r\n * @name lineOffset\r\n * @param {Geometry|Feature<LineString>} line input line\r\n * @param {number} offset distance to offset the line (can be of negative value)\r\n * @param {string} [units=kilometers] can be degrees, radians, miles, kilometers, inches, yards, meters\r\n * @returns {Feature<LineString>} Line offset from the input line\r\n * @example\r\n * var line = {\r\n *   \"type\": \"Feature\",\r\n *   \"properties\": {},\r\n *   \"geometry\": {\r\n *     \"type\": \"LineString\",\r\n *     \"coordinates\": [[-83, 30], [-84, 36], [-78, 41]]\r\n *   }\r\n * };\r\n *\r\n * var offsetLine = turf.lineOffset(line, 2, 'miles');\r\n *\r\n * //addToMap\r\n * var addToMap = [offsetLine, line]\r\n */\r\n```\r\n\r\n- [x] Use a meaningful title for the pull request. Include the name of the package modified.\r\n- [x] Have read [How To Contribute](https://github.com/Turfjs/turf/blob/master/CONTRIBUTING.md#how-to-contribute).\r\n- [x] Run `npm test` at the sub modules where changes have occurred.\r\n- [x] Run `npm run lint` to ensure code style at the turf module level.\r\n\r\nAdds a new lineOffset module as per [this issue](https://github.com/Turfjs/turf/issues/368). Basically takes an input line and returns a new line offset by the distance.\r\n\r\nCurrently supports linestring features and geometries, although not MultiLinestrings.\r\n\r\n~~And for some reason the benchmark isn't printing results?~~\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Turfjs/turf/issues/comments/301060794","html_url":"https://github.com/Turfjs/turf/pull/729#issuecomment-301060794","issue_url":"https://api.github.com/repos/Turfjs/turf/issues/729","id":301060794,"user":{"login":"DenisCarriere","id":550895,"avatar_url":"https://avatars0.githubusercontent.com/u/550895?v=3","gravatar_id":"","url":"https://api.github.com/users/DenisCarriere","html_url":"https://github.com/DenisCarriere","followers_url":"https://api.github.com/users/DenisCarriere/followers","following_url":"https://api.github.com/users/DenisCarriere/following{/other_user}","gists_url":"https://api.github.com/users/DenisCarriere/gists{/gist_id}","starred_url":"https://api.github.com/users/DenisCarriere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenisCarriere/subscriptions","organizations_url":"https://api.github.com/users/DenisCarriere/orgs","repos_url":"https://api.github.com/users/DenisCarriere/repos","events_url":"https://api.github.com/users/DenisCarriere/events{/privacy}","received_events_url":"https://api.github.com/users/DenisCarriere/received_events","type":"User","site_admin":false},"created_at":"2017-05-12T12:15:03Z","updated_at":"2017-05-12T12:15:03Z","body":"For sure, there's going to be a few of those methods that can be re-used."}}
{"actor":{"display_login":"DenisCarriere"}}