{"action":"opened","number":56,"pull_request":{"url":"https://api.github.com/repos/tkrajina/gpxpy/pulls/56","id":62359534,"html_url":"https://github.com/tkrajina/gpxpy/pull/56","diff_url":"https://github.com/tkrajina/gpxpy/pull/56.diff","patch_url":"https://github.com/tkrajina/gpxpy/pull/56.patch","issue_url":"https://api.github.com/repos/tkrajina/gpxpy/issues/56","number":56,"state":"open","locked":false,"title":"Avoid division by zero in gpx files with no points","user":{"login":"jmespadero","id":6451497,"avatar_url":"https://avatars.githubusercontent.com/u/6451497?v=3","gravatar_id":"","url":"https://api.github.com/users/jmespadero","html_url":"https://github.com/jmespadero","followers_url":"https://api.github.com/users/jmespadero/followers","following_url":"https://api.github.com/users/jmespadero/following{/other_user}","gists_url":"https://api.github.com/users/jmespadero/gists{/gist_id}","starred_url":"https://api.github.com/users/jmespadero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmespadero/subscriptions","organizations_url":"https://api.github.com/users/jmespadero/orgs","repos_url":"https://api.github.com/users/jmespadero/repos","events_url":"https://api.github.com/users/jmespadero/events{/privacy}","received_events_url":"https://api.github.com/users/jmespadero/received_events","type":"User","site_admin":false},"body":"Sometimes a gpx file is used just as a collection of  waypoints, with no segments on it. In those cases, a ZeroDivisionError can be launched when computing the average distance between points.","created_at":"2016-03-10T09:16:41Z","updated_at":"2016-03-10T09:16:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tkrajina/gpxpy/pulls/56/commits","review_comments_url":"https://api.github.com/repos/tkrajina/gpxpy/pulls/56/comments","review_comment_url":"https://api.github.com/repos/tkrajina/gpxpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tkrajina/gpxpy/issues/56/comments","statuses_url":"https://api.github.com/repos/tkrajina/gpxpy/statuses/0c3a850845fc55a299194f9e7dce1a5a7f080a1b","head":{"label":"jmespadero:master","ref":"master","sha":"0c3a850845fc55a299194f9e7dce1a5a7f080a1b","user":{"login":"jmespadero","id":6451497,"avatar_url":"https://avatars.githubusercontent.com/u/6451497?v=3","gravatar_id":"","url":"https://api.github.com/users/jmespadero","html_url":"https://github.com/jmespadero","followers_url":"https://api.github.com/users/jmespadero/followers","following_url":"https://api.github.com/users/jmespadero/following{/other_user}","gists_url":"https://api.github.com/users/jmespadero/gists{/gist_id}","starred_url":"https://api.github.com/users/jmespadero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmespadero/subscriptions","organizations_url":"https://api.github.com/users/jmespadero/orgs","repos_url":"https://api.github.com/users/jmespadero/repos","events_url":"https://api.github.com/users/jmespadero/events{/privacy}","received_events_url":"https://api.github.com/users/jmespadero/received_events","type":"User","site_admin":false},"repo":{"id":53434126,"name":"gpxpy","full_name":"jmespadero/gpxpy","owner":{"login":"jmespadero","id":6451497,"avatar_url":"https://avatars.githubusercontent.com/u/6451497?v=3","gravatar_id":"","url":"https://api.github.com/users/jmespadero","html_url":"https://github.com/jmespadero","followers_url":"https://api.github.com/users/jmespadero/followers","following_url":"https://api.github.com/users/jmespadero/following{/other_user}","gists_url":"https://api.github.com/users/jmespadero/gists{/gist_id}","starred_url":"https://api.github.com/users/jmespadero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmespadero/subscriptions","organizations_url":"https://api.github.com/users/jmespadero/orgs","repos_url":"https://api.github.com/users/jmespadero/repos","events_url":"https://api.github.com/users/jmespadero/events{/privacy}","received_events_url":"https://api.github.com/users/jmespadero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmespadero/gpxpy","description":"gpx-py is a python GPX parser. GPX (GPS eXchange Format) is a XML based file format for GPS track logs.","fork":true,"url":"https://api.github.com/repos/jmespadero/gpxpy","forks_url":"https://api.github.com/repos/jmespadero/gpxpy/forks","keys_url":"https://api.github.com/repos/jmespadero/gpxpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmespadero/gpxpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmespadero/gpxpy/teams","hooks_url":"https://api.github.com/repos/jmespadero/gpxpy/hooks","issue_events_url":"https://api.github.com/repos/jmespadero/gpxpy/issues/events{/number}","events_url":"https://api.github.com/repos/jmespadero/gpxpy/events","assignees_url":"https://api.github.com/repos/jmespadero/gpxpy/assignees{/user}","branches_url":"https://api.github.com/repos/jmespadero/gpxpy/branches{/branch}","tags_url":"https://api.github.com/repos/jmespadero/gpxpy/tags","blobs_url":"https://api.github.com/repos/jmespadero/gpxpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmespadero/gpxpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmespadero/gpxpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmespadero/gpxpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmespadero/gpxpy/statuses/{sha}","languages_url":"https://api.github.com/repos/jmespadero/gpxpy/languages","stargazers_url":"https://api.github.com/repos/jmespadero/gpxpy/stargazers","contributors_url":"https://api.github.com/repos/jmespadero/gpxpy/contributors","subscribers_url":"https://api.github.com/repos/jmespadero/gpxpy/subscribers","subscription_url":"https://api.github.com/repos/jmespadero/gpxpy/subscription","commits_url":"https://api.github.com/repos/jmespadero/gpxpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmespadero/gpxpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmespadero/gpxpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmespadero/gpxpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmespadero/gpxpy/contents/{+path}","compare_url":"https://api.github.com/repos/jmespadero/gpxpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmespadero/gpxpy/merges","archive_url":"https://api.github.com/repos/jmespadero/gpxpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmespadero/gpxpy/downloads","issues_url":"https://api.github.com/repos/jmespadero/gpxpy/issues{/number}","pulls_url":"https://api.github.com/repos/jmespadero/gpxpy/pulls{/number}","milestones_url":"https://api.github.com/repos/jmespadero/gpxpy/milestones{/number}","notifications_url":"https://api.github.com/repos/jmespadero/gpxpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmespadero/gpxpy/labels{/name}","releases_url":"https://api.github.com/repos/jmespadero/gpxpy/releases{/id}","deployments_url":"https://api.github.com/repos/jmespadero/gpxpy/deployments","created_at":"2016-03-08T18:09:42Z","updated_at":"2016-03-08T18:09:43Z","pushed_at":"2016-03-10T08:57:45Z","git_url":"git://github.com/jmespadero/gpxpy.git","ssh_url":"git@github.com:jmespadero/gpxpy.git","clone_url":"https://github.com/jmespadero/gpxpy.git","svn_url":"https://github.com/jmespadero/gpxpy","homepage":"","size":765,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tkrajina:master","ref":"master","sha":"51c92d3ace756d5a68245dcead86dade038dbb37","user":{"login":"tkrajina","id":379243,"avatar_url":"https://avatars.githubusercontent.com/u/379243?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrajina","html_url":"https://github.com/tkrajina","followers_url":"https://api.github.com/users/tkrajina/followers","following_url":"https://api.github.com/users/tkrajina/following{/other_user}","gists_url":"https://api.github.com/users/tkrajina/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrajina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrajina/subscriptions","organizations_url":"https://api.github.com/users/tkrajina/orgs","repos_url":"https://api.github.com/users/tkrajina/repos","events_url":"https://api.github.com/users/tkrajina/events{/privacy}","received_events_url":"https://api.github.com/users/tkrajina/received_events","type":"User","site_admin":false},"repo":{"id":913279,"name":"gpxpy","full_name":"tkrajina/gpxpy","owner":{"login":"tkrajina","id":379243,"avatar_url":"https://avatars.githubusercontent.com/u/379243?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrajina","html_url":"https://github.com/tkrajina","followers_url":"https://api.github.com/users/tkrajina/followers","following_url":"https://api.github.com/users/tkrajina/following{/other_user}","gists_url":"https://api.github.com/users/tkrajina/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrajina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrajina/subscriptions","organizations_url":"https://api.github.com/users/tkrajina/orgs","repos_url":"https://api.github.com/users/tkrajina/repos","events_url":"https://api.github.com/users/tkrajina/events{/privacy}","received_events_url":"https://api.github.com/users/tkrajina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tkrajina/gpxpy","description":"gpx-py is a python GPX parser. GPX (GPS eXchange Format) is a XML based file format for GPS track logs.","fork":false,"url":"https://api.github.com/repos/tkrajina/gpxpy","forks_url":"https://api.github.com/repos/tkrajina/gpxpy/forks","keys_url":"https://api.github.com/repos/tkrajina/gpxpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tkrajina/gpxpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tkrajina/gpxpy/teams","hooks_url":"https://api.github.com/repos/tkrajina/gpxpy/hooks","issue_events_url":"https://api.github.com/repos/tkrajina/gpxpy/issues/events{/number}","events_url":"https://api.github.com/repos/tkrajina/gpxpy/events","assignees_url":"https://api.github.com/repos/tkrajina/gpxpy/assignees{/user}","branches_url":"https://api.github.com/repos/tkrajina/gpxpy/branches{/branch}","tags_url":"https://api.github.com/repos/tkrajina/gpxpy/tags","blobs_url":"https://api.github.com/repos/tkrajina/gpxpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tkrajina/gpxpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tkrajina/gpxpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/tkrajina/gpxpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tkrajina/gpxpy/statuses/{sha}","languages_url":"https://api.github.com/repos/tkrajina/gpxpy/languages","stargazers_url":"https://api.github.com/repos/tkrajina/gpxpy/stargazers","contributors_url":"https://api.github.com/repos/tkrajina/gpxpy/contributors","subscribers_url":"https://api.github.com/repos/tkrajina/gpxpy/subscribers","subscription_url":"https://api.github.com/repos/tkrajina/gpxpy/subscription","commits_url":"https://api.github.com/repos/tkrajina/gpxpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/tkrajina/gpxpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/tkrajina/gpxpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/tkrajina/gpxpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/tkrajina/gpxpy/contents/{+path}","compare_url":"https://api.github.com/repos/tkrajina/gpxpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tkrajina/gpxpy/merges","archive_url":"https://api.github.com/repos/tkrajina/gpxpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tkrajina/gpxpy/downloads","issues_url":"https://api.github.com/repos/tkrajina/gpxpy/issues{/number}","pulls_url":"https://api.github.com/repos/tkrajina/gpxpy/pulls{/number}","milestones_url":"https://api.github.com/repos/tkrajina/gpxpy/milestones{/number}","notifications_url":"https://api.github.com/repos/tkrajina/gpxpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tkrajina/gpxpy/labels{/name}","releases_url":"https://api.github.com/repos/tkrajina/gpxpy/releases{/id}","deployments_url":"https://api.github.com/repos/tkrajina/gpxpy/deployments","created_at":"2010-09-15T18:42:28Z","updated_at":"2016-03-01T20:24:00Z","pushed_at":"2016-03-05T14:40:00Z","git_url":"git://github.com/tkrajina/gpxpy.git","ssh_url":"git@github.com:tkrajina/gpxpy.git","clone_url":"https://github.com/tkrajina/gpxpy.git","svn_url":"https://github.com/tkrajina/gpxpy","homepage":"","size":808,"stargazers_count":213,"watchers_count":213,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":74,"mirror_url":null,"open_issues_count":1,"forks":74,"open_issues":1,"watchers":213,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tkrajina/gpxpy/pulls/56"},"html":{"href":"https://github.com/tkrajina/gpxpy/pull/56"},"issue":{"href":"https://api.github.com/repos/tkrajina/gpxpy/issues/56"},"comments":{"href":"https://api.github.com/repos/tkrajina/gpxpy/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/tkrajina/gpxpy/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/tkrajina/gpxpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tkrajina/gpxpy/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/tkrajina/gpxpy/statuses/0c3a850845fc55a299194f9e7dce1a5a7f080a1b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":8,"changed_files":1}}