{"action":"created","comment":{"url":"https://api.github.com/repos/mendhak/gpslogger/pulls/comments/118819018","pull_request_review_id":40651535,"id":118819018,"diff_hunk":"@@ -46,34 +47,22 @@ public CSVFileLogger(File file, @Nullable Float batteryLevel) {\n \n     @Override\n     public void write(Location loc) throws Exception {\n-        if (!file.exists()) {\n-            file.createNewFile();\n-\n-            FileOutputStream writer = new FileOutputStream(file, true);\n-            BufferedOutputStream output = new BufferedOutputStream(writer);\n-            String header = \"time,lat,lon,elevation,accuracy,bearing,speed,satellites,provider,hdop,vdop,pdop,geoidheight,ageofdgpsdata,dgpsid,activity,battery\\n\";\n-            output.write(header.getBytes());\n-            output.flush();\n-            output.close();\n-\n+        if (!Session.getInstance().hasDescription()) {","path":"gpslogger/src/main/java/com/mendhak/gpslogger/loggers/csv/CSVFileLogger.java","position":null,"original_position":22,"commit_id":"fc5524b2da767589c9740c0d225dded62e1f59fb","original_commit_id":"c58acc647b3a0e64063bf7157653fd76fc0d755c","user":{"login":"mendhak","id":746276,"avatar_url":"https://avatars3.githubusercontent.com/u/746276?v=3","gravatar_id":"","url":"https://api.github.com/users/mendhak","html_url":"https://github.com/mendhak","followers_url":"https://api.github.com/users/mendhak/followers","following_url":"https://api.github.com/users/mendhak/following{/other_user}","gists_url":"https://api.github.com/users/mendhak/gists{/gist_id}","starred_url":"https://api.github.com/users/mendhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendhak/subscriptions","organizations_url":"https://api.github.com/users/mendhak/orgs","repos_url":"https://api.github.com/users/mendhak/repos","events_url":"https://api.github.com/users/mendhak/events{/privacy}","received_events_url":"https://api.github.com/users/mendhak/received_events","type":"User","site_admin":false},"body":"OK sorry pushed it back now into master","created_at":"2017-05-27T11:25:07Z","updated_at":"2017-05-27T11:25:07Z","html_url":"https://github.com/mendhak/gpslogger/pull/548#discussion_r118819018","pull_request_url":"https://api.github.com/repos/mendhak/gpslogger/pulls/548","_links":{"self":{"href":"https://api.github.com/repos/mendhak/gpslogger/pulls/comments/118819018"},"html":{"href":"https://github.com/mendhak/gpslogger/pull/548#discussion_r118819018"},"pull_request":{"href":"https://api.github.com/repos/mendhak/gpslogger/pulls/548"}}},"pull_request":{"url":"https://api.github.com/repos/mendhak/gpslogger/pulls/548","id":122641652,"html_url":"https://github.com/mendhak/gpslogger/pull/548","diff_url":"https://github.com/mendhak/gpslogger/pull/548.diff","patch_url":"https://github.com/mendhak/gpslogger/pull/548.patch","issue_url":"https://api.github.com/repos/mendhak/gpslogger/issues/548","number":548,"state":"closed","locked":false,"title":"CSV logger can save annotations","user":{"login":"danielfaust","id":320098,"avatar_url":"https://avatars0.githubusercontent.com/u/320098?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfaust","html_url":"https://github.com/danielfaust","followers_url":"https://api.github.com/users/danielfaust/followers","following_url":"https://api.github.com/users/danielfaust/following{/other_user}","gists_url":"https://api.github.com/users/danielfaust/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfaust/subscriptions","organizations_url":"https://api.github.com/users/danielfaust/orgs","repos_url":"https://api.github.com/users/danielfaust/repos","events_url":"https://api.github.com/users/danielfaust/events{/privacy}","received_events_url":"https://api.github.com/users/danielfaust/received_events","type":"User","site_admin":false},"body":"Added the ability to store annotations into the CSV file.\r\n\r\nThese can range from Emojis to Japanese characters. Generated files are parsesable by Python's csv.reader and annotations can be transformed to json strings without problems.\r\n\r\nThis will allow for server-side generation of kml files or webpages with embedded google maps including waypoints via post-processing.\r\n\r\n> time,lat,lon,elevation,accuracy,bearing,speed,satellites,provider,hdop,vdop,pdop,geoidheight,ageofdgpsdata,dgpsid,activity,battery,annotation\r\n2017-05-26T11:23:59.925Z,xx.xxx613,yy.y39825,,20.526,,,0,network,,,,,,,UNKNOWN,100.0,\r\n2017-05-26T11:24:09.000Z,xx.xxx418,yy.y40032,476.0,11.0,127.7,0.7211103,6,gps,,,,,,,,100.0,\r\n2017-05-26T11:24:55.000Z,xx.xxx511,yy.y39971,467.0,4.0,,0.0,9,gps,1.2,0.9,1.5,48.0,,,,100.0,\"良 is \"\"ok\"\" ߘ\"\r\n2017-05-26T11:24:58.000Z,xx.xxx510,yy.y39971,467.0,4.0,,0.0,9,gps,1.0,0.9,1.3,48.0,,,,100.0,\r\n2017-05-26T11:25:01.000Z,xx.xxx510,yy.y39971,467.0,3.0,,0.0,9,gps,1.0,0.9,1.3,48.0,,,UNKNOWN,100.0,\r\n2017-05-26T11:25:04.000Z,xx.xxx510,yy.y39971,467.0,4.0,,0.0,9,gps,1.1,0.9,1.4,48.0,,,,100.0,\r\n2017-05-26T11:25:07.000Z,xx.xxx510,yy.y39971,467.0,3.0,,0.0,9,gps,1.1,0.9,1.4,48.0,,,,100.0,\r\n2017-05-26T11:25:09.000Z,xx.xxx510,yy.y39971,467.0,4.0,,0.0,8,gps,0.9,0.9,1.3,48.0,,,,100.0,\"mark-1\"\r\n2017-05-26T11:25:12.000Z,xx.xxx509,yy.y39970,467.0,4.0,,0.0,8,gps,0.8,0.8,1.1,48.0,,,,100.0,\r\n2017-05-26T11:25:15.000Z,xx.xxx508,yy.y39970,467.0,3.0,,0.0,8,gps,0.7,0.8,1.0,48.0,,,,100.0,\"mark-2\"\r\n2017-05-26T11:25:18.000Z,xx.xxx508,yy.y39970,467.0,3.0,,0.0,8,gps,0.9,0.8,1.2,48.0,,,,100.0,","created_at":"2017-05-26T13:21:37Z","updated_at":"2017-05-27T11:25:07Z","closed_at":"2017-05-27T09:52:16Z","merged_at":"2017-05-27T09:52:16Z","merge_commit_sha":"fc5524b2da767589c9740c0d225dded62e1f59fb","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/mendhak/gpslogger/milestones/14","html_url":"https://github.com/mendhak/gpslogger/milestone/14","labels_url":"https://api.github.com/repos/mendhak/gpslogger/milestones/14/labels","id":2520745,"number":14,"title":"v88","description":"","creator":{"login":"mendhak","id":746276,"avatar_url":"https://avatars3.githubusercontent.com/u/746276?v=3","gravatar_id":"","url":"https://api.github.com/users/mendhak","html_url":"https://github.com/mendhak","followers_url":"https://api.github.com/users/mendhak/followers","following_url":"https://api.github.com/users/mendhak/following{/other_user}","gists_url":"https://api.github.com/users/mendhak/gists{/gist_id}","starred_url":"https://api.github.com/users/mendhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendhak/subscriptions","organizations_url":"https://api.github.com/users/mendhak/orgs","repos_url":"https://api.github.com/users/mendhak/repos","events_url":"https://api.github.com/users/mendhak/events{/privacy}","received_events_url":"https://api.github.com/users/mendhak/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2017-05-15T09:30:02Z","updated_at":"2017-05-27T10:35:00Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mendhak/gpslogger/pulls/548/commits","review_comments_url":"https://api.github.com/repos/mendhak/gpslogger/pulls/548/comments","review_comment_url":"https://api.github.com/repos/mendhak/gpslogger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mendhak/gpslogger/issues/548/comments","statuses_url":"https://api.github.com/repos/mendhak/gpslogger/statuses/fc5524b2da767589c9740c0d225dded62e1f59fb","head":{"label":"danielfaust:master","ref":"master","sha":"fc5524b2da767589c9740c0d225dded62e1f59fb","user":{"login":"danielfaust","id":320098,"avatar_url":"https://avatars0.githubusercontent.com/u/320098?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfaust","html_url":"https://github.com/danielfaust","followers_url":"https://api.github.com/users/danielfaust/followers","following_url":"https://api.github.com/users/danielfaust/following{/other_user}","gists_url":"https://api.github.com/users/danielfaust/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfaust/subscriptions","organizations_url":"https://api.github.com/users/danielfaust/orgs","repos_url":"https://api.github.com/users/danielfaust/repos","events_url":"https://api.github.com/users/danielfaust/events{/privacy}","received_events_url":"https://api.github.com/users/danielfaust/received_events","type":"User","site_admin":false},"repo":{"id":92325798,"name":"gpslogger","full_name":"danielfaust/gpslogger","owner":{"login":"danielfaust","id":320098,"avatar_url":"https://avatars0.githubusercontent.com/u/320098?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfaust","html_url":"https://github.com/danielfaust","followers_url":"https://api.github.com/users/danielfaust/followers","following_url":"https://api.github.com/users/danielfaust/following{/other_user}","gists_url":"https://api.github.com/users/danielfaust/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfaust/subscriptions","organizations_url":"https://api.github.com/users/danielfaust/orgs","repos_url":"https://api.github.com/users/danielfaust/repos","events_url":"https://api.github.com/users/danielfaust/events{/privacy}","received_events_url":"https://api.github.com/users/danielfaust/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielfaust/gpslogger","description":":satellite: Lightweight GPS Logging Application For Android. Available on the Android Market as \"GPSLogger for Android\"","fork":true,"url":"https://api.github.com/repos/danielfaust/gpslogger","forks_url":"https://api.github.com/repos/danielfaust/gpslogger/forks","keys_url":"https://api.github.com/repos/danielfaust/gpslogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielfaust/gpslogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielfaust/gpslogger/teams","hooks_url":"https://api.github.com/repos/danielfaust/gpslogger/hooks","issue_events_url":"https://api.github.com/repos/danielfaust/gpslogger/issues/events{/number}","events_url":"https://api.github.com/repos/danielfaust/gpslogger/events","assignees_url":"https://api.github.com/repos/danielfaust/gpslogger/assignees{/user}","branches_url":"https://api.github.com/repos/danielfaust/gpslogger/branches{/branch}","tags_url":"https://api.github.com/repos/danielfaust/gpslogger/tags","blobs_url":"https://api.github.com/repos/danielfaust/gpslogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielfaust/gpslogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielfaust/gpslogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielfaust/gpslogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielfaust/gpslogger/statuses/{sha}","languages_url":"https://api.github.com/repos/danielfaust/gpslogger/languages","stargazers_url":"https://api.github.com/repos/danielfaust/gpslogger/stargazers","contributors_url":"https://api.github.com/repos/danielfaust/gpslogger/contributors","subscribers_url":"https://api.github.com/repos/danielfaust/gpslogger/subscribers","subscription_url":"https://api.github.com/repos/danielfaust/gpslogger/subscription","commits_url":"https://api.github.com/repos/danielfaust/gpslogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielfaust/gpslogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielfaust/gpslogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielfaust/gpslogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielfaust/gpslogger/contents/{+path}","compare_url":"https://api.github.com/repos/danielfaust/gpslogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielfaust/gpslogger/merges","archive_url":"https://api.github.com/repos/danielfaust/gpslogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielfaust/gpslogger/downloads","issues_url":"https://api.github.com/repos/danielfaust/gpslogger/issues{/number}","pulls_url":"https://api.github.com/repos/danielfaust/gpslogger/pulls{/number}","milestones_url":"https://api.github.com/repos/danielfaust/gpslogger/milestones{/number}","notifications_url":"https://api.github.com/repos/danielfaust/gpslogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielfaust/gpslogger/labels{/name}","releases_url":"https://api.github.com/repos/danielfaust/gpslogger/releases{/id}","deployments_url":"https://api.github.com/repos/danielfaust/gpslogger/deployments","created_at":"2017-05-24T18:50:29Z","updated_at":"2017-05-24T18:50:32Z","pushed_at":"2017-05-27T09:11:00Z","git_url":"git://github.com/danielfaust/gpslogger.git","ssh_url":"git@github.com:danielfaust/gpslogger.git","clone_url":"https://github.com/danielfaust/gpslogger.git","svn_url":"https://github.com/danielfaust/gpslogger","homepage":"http://code.mendhak.com/gpslogger/","size":19676,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"mendhak:master","ref":"master","sha":"7da0d776f70d947b7e3b65ddf4ab70bad3117e98","user":{"login":"mendhak","id":746276,"avatar_url":"https://avatars3.githubusercontent.com/u/746276?v=3","gravatar_id":"","url":"https://api.github.com/users/mendhak","html_url":"https://github.com/mendhak","followers_url":"https://api.github.com/users/mendhak/followers","following_url":"https://api.github.com/users/mendhak/following{/other_user}","gists_url":"https://api.github.com/users/mendhak/gists{/gist_id}","starred_url":"https://api.github.com/users/mendhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendhak/subscriptions","organizations_url":"https://api.github.com/users/mendhak/orgs","repos_url":"https://api.github.com/users/mendhak/repos","events_url":"https://api.github.com/users/mendhak/events{/privacy}","received_events_url":"https://api.github.com/users/mendhak/received_events","type":"User","site_admin":false},"repo":{"id":1925457,"name":"gpslogger","full_name":"mendhak/gpslogger","owner":{"login":"mendhak","id":746276,"avatar_url":"https://avatars3.githubusercontent.com/u/746276?v=3","gravatar_id":"","url":"https://api.github.com/users/mendhak","html_url":"https://github.com/mendhak","followers_url":"https://api.github.com/users/mendhak/followers","following_url":"https://api.github.com/users/mendhak/following{/other_user}","gists_url":"https://api.github.com/users/mendhak/gists{/gist_id}","starred_url":"https://api.github.com/users/mendhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendhak/subscriptions","organizations_url":"https://api.github.com/users/mendhak/orgs","repos_url":"https://api.github.com/users/mendhak/repos","events_url":"https://api.github.com/users/mendhak/events{/privacy}","received_events_url":"https://api.github.com/users/mendhak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mendhak/gpslogger","description":":satellite: Lightweight GPS Logging Application For Android. Available on the Android Market as \"GPSLogger for Android\"","fork":false,"url":"https://api.github.com/repos/mendhak/gpslogger","forks_url":"https://api.github.com/repos/mendhak/gpslogger/forks","keys_url":"https://api.github.com/repos/mendhak/gpslogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mendhak/gpslogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mendhak/gpslogger/teams","hooks_url":"https://api.github.com/repos/mendhak/gpslogger/hooks","issue_events_url":"https://api.github.com/repos/mendhak/gpslogger/issues/events{/number}","events_url":"https://api.github.com/repos/mendhak/gpslogger/events","assignees_url":"https://api.github.com/repos/mendhak/gpslogger/assignees{/user}","branches_url":"https://api.github.com/repos/mendhak/gpslogger/branches{/branch}","tags_url":"https://api.github.com/repos/mendhak/gpslogger/tags","blobs_url":"https://api.github.com/repos/mendhak/gpslogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mendhak/gpslogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mendhak/gpslogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/mendhak/gpslogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mendhak/gpslogger/statuses/{sha}","languages_url":"https://api.github.com/repos/mendhak/gpslogger/languages","stargazers_url":"https://api.github.com/repos/mendhak/gpslogger/stargazers","contributors_url":"https://api.github.com/repos/mendhak/gpslogger/contributors","subscribers_url":"https://api.github.com/repos/mendhak/gpslogger/subscribers","subscription_url":"https://api.github.com/repos/mendhak/gpslogger/subscription","commits_url":"https://api.github.com/repos/mendhak/gpslogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/mendhak/gpslogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/mendhak/gpslogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/mendhak/gpslogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/mendhak/gpslogger/contents/{+path}","compare_url":"https://api.github.com/repos/mendhak/gpslogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mendhak/gpslogger/merges","archive_url":"https://api.github.com/repos/mendhak/gpslogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mendhak/gpslogger/downloads","issues_url":"https://api.github.com/repos/mendhak/gpslogger/issues{/number}","pulls_url":"https://api.github.com/repos/mendhak/gpslogger/pulls{/number}","milestones_url":"https://api.github.com/repos/mendhak/gpslogger/milestones{/number}","notifications_url":"https://api.github.com/repos/mendhak/gpslogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mendhak/gpslogger/labels{/name}","releases_url":"https://api.github.com/repos/mendhak/gpslogger/releases{/id}","deployments_url":"https://api.github.com/repos/mendhak/gpslogger/deployments","created_at":"2011-06-20T19:49:42Z","updated_at":"2017-05-25T18:00:01Z","pushed_at":"2017-05-27T11:24:57Z","git_url":"git://github.com/mendhak/gpslogger.git","ssh_url":"git@github.com:mendhak/gpslogger.git","clone_url":"https://github.com/mendhak/gpslogger.git","svn_url":"https://github.com/mendhak/gpslogger","homepage":"http://code.mendhak.com/gpslogger/","size":19676,"stargazers_count":722,"watchers_count":722,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":343,"mirror_url":null,"open_issues_count":44,"forks":343,"open_issues":44,"watchers":722,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mendhak/gpslogger/pulls/548"},"html":{"href":"https://github.com/mendhak/gpslogger/pull/548"},"issue":{"href":"https://api.github.com/repos/mendhak/gpslogger/issues/548"},"comments":{"href":"https://api.github.com/repos/mendhak/gpslogger/issues/548/comments"},"review_comments":{"href":"https://api.github.com/repos/mendhak/gpslogger/pulls/548/comments"},"review_comment":{"href":"https://api.github.com/repos/mendhak/gpslogger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mendhak/gpslogger/pulls/548/commits"},"statuses":{"href":"https://api.github.com/repos/mendhak/gpslogger/statuses/fc5524b2da767589c9740c0d225dded62e1f59fb"}}}}
{"actor":{"display_login":"mendhak"}}