{"action":"created","comment":{"url":"https://api.github.com/repos/mapbox/navigation.js/pulls/comments/57222429","id":57222429,"diff_hunk":"@@ -0,0 +1,28 @@\n+# Navigation.js specification\n+\n+## Purpose\n+The goal of this specification is to outline the rules and ideas this library adheres to guide a user along a route.\n+\n+### Units\n+By default, the metric system should be used where available.\n+\n+### Concepts\n+Navigation.js looks at a single step along a greater route. All calculations are done against this step and not against the whole route. Once a step is completed, the next step on the route can be compared. If the user is no longer on the current step, the developer should re-route the user and also set their internal step counter back to 0.","path":"SPEC.md","position":10,"original_position":10,"commit_id":"3e8feb3e41d98f2d9b12f195d6eef031633d9871","original_commit_id":"3e8feb3e41d98f2d9b12f195d6eef031633d9871","user":{"login":"zugaldia","id":6964,"avatar_url":"https://avatars.githubusercontent.com/u/6964?v=3","gravatar_id":"","url":"https://api.github.com/users/zugaldia","html_url":"https://github.com/zugaldia","followers_url":"https://api.github.com/users/zugaldia/followers","following_url":"https://api.github.com/users/zugaldia/following{/other_user}","gists_url":"https://api.github.com/users/zugaldia/gists{/gist_id}","starred_url":"https://api.github.com/users/zugaldia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zugaldia/subscriptions","organizations_url":"https://api.github.com/users/zugaldia/orgs","repos_url":"https://api.github.com/users/zugaldia/repos","events_url":"https://api.github.com/users/zugaldia/events{/privacy}","received_events_url":"https://api.github.com/users/zugaldia/received_events","type":"User","site_admin":false},"body":"> All calculations are done against this step and not against the whole route.\r\n\r\nIs this true in all cases? How about region pre-caching, or POI search along the route?","created_at":"2016-03-23T19:30:44Z","updated_at":"2016-03-23T19:30:44Z","html_url":"https://github.com/mapbox/navigation.js/pull/27#discussion_r57222429","pull_request_url":"https://api.github.com/repos/mapbox/navigation.js/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/mapbox/navigation.js/pulls/comments/57222429"},"html":{"href":"https://github.com/mapbox/navigation.js/pull/27#discussion_r57222429"},"pull_request":{"href":"https://api.github.com/repos/mapbox/navigation.js/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/mapbox/navigation.js/pulls/27","id":63648138,"html_url":"https://github.com/mapbox/navigation.js/pull/27","diff_url":"https://github.com/mapbox/navigation.js/pull/27.diff","patch_url":"https://github.com/mapbox/navigation.js/pull/27.patch","issue_url":"https://api.github.com/repos/mapbox/navigation.js/issues/27","number":27,"state":"open","locked":false,"title":"Add specification","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"body":"First draft with rules and ideas this library uses for guidance, feedback welcome. \r\n\r\n/cc @1ec5 @zugaldia ","created_at":"2016-03-21T23:19:30Z","updated_at":"2016-03-23T19:30:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f02e668bd88bf8148b491959991b23bdf10e560f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/navigation.js/pulls/27/commits","review_comments_url":"https://api.github.com/repos/mapbox/navigation.js/pulls/27/comments","review_comment_url":"https://api.github.com/repos/mapbox/navigation.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/navigation.js/issues/27/comments","statuses_url":"https://api.github.com/repos/mapbox/navigation.js/statuses/3e8feb3e41d98f2d9b12f195d6eef031633d9871","head":{"label":"mapbox:spec","ref":"spec","sha":"3e8feb3e41d98f2d9b12f195d6eef031633d9871","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":50203499,"name":"navigation.js","full_name":"mapbox/navigation.js","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/navigation.js","description":"Utility for monitoring a user location in relation to a route","fork":false,"url":"https://api.github.com/repos/mapbox/navigation.js","forks_url":"https://api.github.com/repos/mapbox/navigation.js/forks","keys_url":"https://api.github.com/repos/mapbox/navigation.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/navigation.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/navigation.js/teams","hooks_url":"https://api.github.com/repos/mapbox/navigation.js/hooks","issue_events_url":"https://api.github.com/repos/mapbox/navigation.js/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/navigation.js/events","assignees_url":"https://api.github.com/repos/mapbox/navigation.js/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/navigation.js/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/navigation.js/tags","blobs_url":"https://api.github.com/repos/mapbox/navigation.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/navigation.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/navigation.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/navigation.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/navigation.js/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/navigation.js/languages","stargazers_url":"https://api.github.com/repos/mapbox/navigation.js/stargazers","contributors_url":"https://api.github.com/repos/mapbox/navigation.js/contributors","subscribers_url":"https://api.github.com/repos/mapbox/navigation.js/subscribers","subscription_url":"https://api.github.com/repos/mapbox/navigation.js/subscription","commits_url":"https://api.github.com/repos/mapbox/navigation.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/navigation.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/navigation.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/navigation.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/navigation.js/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/navigation.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/navigation.js/merges","archive_url":"https://api.github.com/repos/mapbox/navigation.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/navigation.js/downloads","issues_url":"https://api.github.com/repos/mapbox/navigation.js/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/navigation.js/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/navigation.js/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/navigation.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/navigation.js/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/navigation.js/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/navigation.js/deployments","created_at":"2016-01-22T19:40:31Z","updated_at":"2016-03-14T21:48:25Z","pushed_at":"2016-03-21T23:19:31Z","git_url":"git://github.com/mapbox/navigation.js.git","ssh_url":"git@github.com:mapbox/navigation.js.git","clone_url":"https://github.com/mapbox/navigation.js.git","svn_url":"https://github.com/mapbox/navigation.js","homepage":"","size":2895,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":24,"default_branch":"mb-pages"}},"base":{"label":"mapbox:mb-pages","ref":"mb-pages","sha":"569fc6a91b3795d4f7ce6462d5db732c2eb11967","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":50203499,"name":"navigation.js","full_name":"mapbox/navigation.js","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/navigation.js","description":"Utility for monitoring a user location in relation to a route","fork":false,"url":"https://api.github.com/repos/mapbox/navigation.js","forks_url":"https://api.github.com/repos/mapbox/navigation.js/forks","keys_url":"https://api.github.com/repos/mapbox/navigation.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/navigation.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/navigation.js/teams","hooks_url":"https://api.github.com/repos/mapbox/navigation.js/hooks","issue_events_url":"https://api.github.com/repos/mapbox/navigation.js/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/navigation.js/events","assignees_url":"https://api.github.com/repos/mapbox/navigation.js/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/navigation.js/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/navigation.js/tags","blobs_url":"https://api.github.com/repos/mapbox/navigation.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/navigation.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/navigation.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/navigation.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/navigation.js/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/navigation.js/languages","stargazers_url":"https://api.github.com/repos/mapbox/navigation.js/stargazers","contributors_url":"https://api.github.com/repos/mapbox/navigation.js/contributors","subscribers_url":"https://api.github.com/repos/mapbox/navigation.js/subscribers","subscription_url":"https://api.github.com/repos/mapbox/navigation.js/subscription","commits_url":"https://api.github.com/repos/mapbox/navigation.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/navigation.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/navigation.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/navigation.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/navigation.js/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/navigation.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/navigation.js/merges","archive_url":"https://api.github.com/repos/mapbox/navigation.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/navigation.js/downloads","issues_url":"https://api.github.com/repos/mapbox/navigation.js/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/navigation.js/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/navigation.js/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/navigation.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/navigation.js/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/navigation.js/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/navigation.js/deployments","created_at":"2016-01-22T19:40:31Z","updated_at":"2016-03-14T21:48:25Z","pushed_at":"2016-03-21T23:19:31Z","git_url":"git://github.com/mapbox/navigation.js.git","ssh_url":"git@github.com:mapbox/navigation.js.git","clone_url":"https://github.com/mapbox/navigation.js.git","svn_url":"https://github.com/mapbox/navigation.js","homepage":"","size":2895,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":24,"default_branch":"mb-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/navigation.js/pulls/27"},"html":{"href":"https://github.com/mapbox/navigation.js/pull/27"},"issue":{"href":"https://api.github.com/repos/mapbox/navigation.js/issues/27"},"comments":{"href":"https://api.github.com/repos/mapbox/navigation.js/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/navigation.js/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/navigation.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/navigation.js/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/navigation.js/statuses/3e8feb3e41d98f2d9b12f195d6eef031633d9871"}}}}