{"action":"created","comment":{"url":"https://api.github.com/repos/tananaev/traccar/pulls/comments/66775889","id":66775889,"diff_hunk":"@@ -0,0 +1,82 @@\n+package org.traccar.geofence;\n+\n+import java.text.DecimalFormat;\n+import java.text.ParseException;\n+\n+import org.traccar.helper.DistanceCalculator;\n+\n+public class GeofenceCircle extends GeofenceGeometry {\n+\n+    private double centerLatitude;\n+    private double centerLongitude;\n+    private double radius;\n+\n+    public GeofenceCircle() {\n+        super();\n+    }\n+\n+    public GeofenceCircle(String wkt) throws ParseException {\n+        super();\n+        fromWKT(wkt);","path":"src/org/traccar/geofence/GeofenceCircle.java","position":20,"original_position":20,"commit_id":"a5cdddd4a304f75645a2b89b7e834e5750466c5b","original_commit_id":"a5cdddd4a304f75645a2b89b7e834e5750466c5b","user":{"login":"tananaev","id":1161863,"avatar_url":"https://avatars.githubusercontent.com/u/1161863?v=3","gravatar_id":"","url":"https://api.github.com/users/tananaev","html_url":"https://github.com/tananaev","followers_url":"https://api.github.com/users/tananaev/followers","following_url":"https://api.github.com/users/tananaev/following{/other_user}","gists_url":"https://api.github.com/users/tananaev/gists{/gist_id}","starred_url":"https://api.github.com/users/tananaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tananaev/subscriptions","organizations_url":"https://api.github.com/users/tananaev/orgs","repos_url":"https://api.github.com/users/tananaev/repos","events_url":"https://api.github.com/users/tananaev/events{/privacy}","received_events_url":"https://api.github.com/users/tananaev/received_events","type":"User","site_admin":false},"body":"Please use camel case. It should be `fromWkt`.","created_at":"2016-06-13T11:20:55Z","updated_at":"2016-06-13T11:20:55Z","html_url":"https://github.com/tananaev/traccar/pull/2012#discussion_r66775889","pull_request_url":"https://api.github.com/repos/tananaev/traccar/pulls/2012","_links":{"self":{"href":"https://api.github.com/repos/tananaev/traccar/pulls/comments/66775889"},"html":{"href":"https://github.com/tananaev/traccar/pull/2012#discussion_r66775889"},"pull_request":{"href":"https://api.github.com/repos/tananaev/traccar/pulls/2012"}}},"pull_request":{"url":"https://api.github.com/repos/tananaev/traccar/pulls/2012","id":73357578,"html_url":"https://github.com/tananaev/traccar/pull/2012","diff_url":"https://github.com/tananaev/traccar/pull/2012.diff","patch_url":"https://github.com/tananaev/traccar/pull/2012.patch","issue_url":"https://api.github.com/repos/tananaev/traccar/issues/2012","number":2012,"state":"open","locked":false,"title":"Geofences","user":{"login":"Abyss777","id":5688080,"avatar_url":"https://avatars.githubusercontent.com/u/5688080?v=3","gravatar_id":"","url":"https://api.github.com/users/Abyss777","html_url":"https://github.com/Abyss777","followers_url":"https://api.github.com/users/Abyss777/followers","following_url":"https://api.github.com/users/Abyss777/following{/other_user}","gists_url":"https://api.github.com/users/Abyss777/gists{/gist_id}","starred_url":"https://api.github.com/users/Abyss777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abyss777/subscriptions","organizations_url":"https://api.github.com/users/Abyss777/orgs","repos_url":"https://api.github.com/users/Abyss777/repos","events_url":"https://api.github.com/users/Abyss777/events{/privacy}","received_events_url":"https://api.github.com/users/Abyss777/received_events","type":"User","site_admin":false},"body":"I reorganized a model hierarchy a bit.\r\nAdded two type of a geofences geometry.\r\nAdded an event handler for a geofences\r\nThe geofence handling happens in GeofenceManager, they cached there in different ways.\r\nAdded permissions to user for geofences.\r\nAdded ability to link the geofence to a group. \r\nAdded ability to link the geofence to a device per user.\r\nAdded API to handle geofences, links and permissions (tested partially)","created_at":"2016-06-10T11:13:46Z","updated_at":"2016-06-13T11:20:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f37edd4b9d2078b9f6a30d5efdb7739ef36e8b64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tananaev/traccar/pulls/2012/commits","review_comments_url":"https://api.github.com/repos/tananaev/traccar/pulls/2012/comments","review_comment_url":"https://api.github.com/repos/tananaev/traccar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tananaev/traccar/issues/2012/comments","statuses_url":"https://api.github.com/repos/tananaev/traccar/statuses/a5cdddd4a304f75645a2b89b7e834e5750466c5b","head":{"label":"Abyss777:master","ref":"master","sha":"a5cdddd4a304f75645a2b89b7e834e5750466c5b","user":{"login":"Abyss777","id":5688080,"avatar_url":"https://avatars.githubusercontent.com/u/5688080?v=3","gravatar_id":"","url":"https://api.github.com/users/Abyss777","html_url":"https://github.com/Abyss777","followers_url":"https://api.github.com/users/Abyss777/followers","following_url":"https://api.github.com/users/Abyss777/following{/other_user}","gists_url":"https://api.github.com/users/Abyss777/gists{/gist_id}","starred_url":"https://api.github.com/users/Abyss777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abyss777/subscriptions","organizations_url":"https://api.github.com/users/Abyss777/orgs","repos_url":"https://api.github.com/users/Abyss777/repos","events_url":"https://api.github.com/users/Abyss777/events{/privacy}","received_events_url":"https://api.github.com/users/Abyss777/received_events","type":"User","site_admin":false},"repo":{"id":58906096,"name":"traccar","full_name":"Abyss777/traccar","owner":{"login":"Abyss777","id":5688080,"avatar_url":"https://avatars.githubusercontent.com/u/5688080?v=3","gravatar_id":"","url":"https://api.github.com/users/Abyss777","html_url":"https://github.com/Abyss777","followers_url":"https://api.github.com/users/Abyss777/followers","following_url":"https://api.github.com/users/Abyss777/following{/other_user}","gists_url":"https://api.github.com/users/Abyss777/gists{/gist_id}","starred_url":"https://api.github.com/users/Abyss777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abyss777/subscriptions","organizations_url":"https://api.github.com/users/Abyss777/orgs","repos_url":"https://api.github.com/users/Abyss777/repos","events_url":"https://api.github.com/users/Abyss777/events{/privacy}","received_events_url":"https://api.github.com/users/Abyss777/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Abyss777/traccar","description":"Traccar GPS Tracking System","fork":true,"url":"https://api.github.com/repos/Abyss777/traccar","forks_url":"https://api.github.com/repos/Abyss777/traccar/forks","keys_url":"https://api.github.com/repos/Abyss777/traccar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Abyss777/traccar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Abyss777/traccar/teams","hooks_url":"https://api.github.com/repos/Abyss777/traccar/hooks","issue_events_url":"https://api.github.com/repos/Abyss777/traccar/issues/events{/number}","events_url":"https://api.github.com/repos/Abyss777/traccar/events","assignees_url":"https://api.github.com/repos/Abyss777/traccar/assignees{/user}","branches_url":"https://api.github.com/repos/Abyss777/traccar/branches{/branch}","tags_url":"https://api.github.com/repos/Abyss777/traccar/tags","blobs_url":"https://api.github.com/repos/Abyss777/traccar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Abyss777/traccar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Abyss777/traccar/git/refs{/sha}","trees_url":"https://api.github.com/repos/Abyss777/traccar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Abyss777/traccar/statuses/{sha}","languages_url":"https://api.github.com/repos/Abyss777/traccar/languages","stargazers_url":"https://api.github.com/repos/Abyss777/traccar/stargazers","contributors_url":"https://api.github.com/repos/Abyss777/traccar/contributors","subscribers_url":"https://api.github.com/repos/Abyss777/traccar/subscribers","subscription_url":"https://api.github.com/repos/Abyss777/traccar/subscription","commits_url":"https://api.github.com/repos/Abyss777/traccar/commits{/sha}","git_commits_url":"https://api.github.com/repos/Abyss777/traccar/git/commits{/sha}","comments_url":"https://api.github.com/repos/Abyss777/traccar/comments{/number}","issue_comment_url":"https://api.github.com/repos/Abyss777/traccar/issues/comments{/number}","contents_url":"https://api.github.com/repos/Abyss777/traccar/contents/{+path}","compare_url":"https://api.github.com/repos/Abyss777/traccar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Abyss777/traccar/merges","archive_url":"https://api.github.com/repos/Abyss777/traccar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Abyss777/traccar/downloads","issues_url":"https://api.github.com/repos/Abyss777/traccar/issues{/number}","pulls_url":"https://api.github.com/repos/Abyss777/traccar/pulls{/number}","milestones_url":"https://api.github.com/repos/Abyss777/traccar/milestones{/number}","notifications_url":"https://api.github.com/repos/Abyss777/traccar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Abyss777/traccar/labels{/name}","releases_url":"https://api.github.com/repos/Abyss777/traccar/releases{/id}","deployments_url":"https://api.github.com/repos/Abyss777/traccar/deployments","created_at":"2016-05-16T05:29:28Z","updated_at":"2016-05-16T05:29:30Z","pushed_at":"2016-06-10T15:09:33Z","git_url":"git://github.com/Abyss777/traccar.git","ssh_url":"git@github.com:Abyss777/traccar.git","clone_url":"https://github.com/Abyss777/traccar.git","svn_url":"https://github.com/Abyss777/traccar","homepage":"https://www.traccar.org","size":6520,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"tananaev:master","ref":"master","sha":"e966778c43ee4a2fa12705cded8648b96ef78f61","user":{"login":"tananaev","id":1161863,"avatar_url":"https://avatars.githubusercontent.com/u/1161863?v=3","gravatar_id":"","url":"https://api.github.com/users/tananaev","html_url":"https://github.com/tananaev","followers_url":"https://api.github.com/users/tananaev/followers","following_url":"https://api.github.com/users/tananaev/following{/other_user}","gists_url":"https://api.github.com/users/tananaev/gists{/gist_id}","starred_url":"https://api.github.com/users/tananaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tananaev/subscriptions","organizations_url":"https://api.github.com/users/tananaev/orgs","repos_url":"https://api.github.com/users/tananaev/repos","events_url":"https://api.github.com/users/tananaev/events{/privacy}","received_events_url":"https://api.github.com/users/tananaev/received_events","type":"User","site_admin":false},"repo":{"id":4038949,"name":"traccar","full_name":"tananaev/traccar","owner":{"login":"tananaev","id":1161863,"avatar_url":"https://avatars.githubusercontent.com/u/1161863?v=3","gravatar_id":"","url":"https://api.github.com/users/tananaev","html_url":"https://github.com/tananaev","followers_url":"https://api.github.com/users/tananaev/followers","following_url":"https://api.github.com/users/tananaev/following{/other_user}","gists_url":"https://api.github.com/users/tananaev/gists{/gist_id}","starred_url":"https://api.github.com/users/tananaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tananaev/subscriptions","organizations_url":"https://api.github.com/users/tananaev/orgs","repos_url":"https://api.github.com/users/tananaev/repos","events_url":"https://api.github.com/users/tananaev/events{/privacy}","received_events_url":"https://api.github.com/users/tananaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tananaev/traccar","description":"Traccar GPS Tracking System","fork":false,"url":"https://api.github.com/repos/tananaev/traccar","forks_url":"https://api.github.com/repos/tananaev/traccar/forks","keys_url":"https://api.github.com/repos/tananaev/traccar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tananaev/traccar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tananaev/traccar/teams","hooks_url":"https://api.github.com/repos/tananaev/traccar/hooks","issue_events_url":"https://api.github.com/repos/tananaev/traccar/issues/events{/number}","events_url":"https://api.github.com/repos/tananaev/traccar/events","assignees_url":"https://api.github.com/repos/tananaev/traccar/assignees{/user}","branches_url":"https://api.github.com/repos/tananaev/traccar/branches{/branch}","tags_url":"https://api.github.com/repos/tananaev/traccar/tags","blobs_url":"https://api.github.com/repos/tananaev/traccar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tananaev/traccar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tananaev/traccar/git/refs{/sha}","trees_url":"https://api.github.com/repos/tananaev/traccar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tananaev/traccar/statuses/{sha}","languages_url":"https://api.github.com/repos/tananaev/traccar/languages","stargazers_url":"https://api.github.com/repos/tananaev/traccar/stargazers","contributors_url":"https://api.github.com/repos/tananaev/traccar/contributors","subscribers_url":"https://api.github.com/repos/tananaev/traccar/subscribers","subscription_url":"https://api.github.com/repos/tananaev/traccar/subscription","commits_url":"https://api.github.com/repos/tananaev/traccar/commits{/sha}","git_commits_url":"https://api.github.com/repos/tananaev/traccar/git/commits{/sha}","comments_url":"https://api.github.com/repos/tananaev/traccar/comments{/number}","issue_comment_url":"https://api.github.com/repos/tananaev/traccar/issues/comments{/number}","contents_url":"https://api.github.com/repos/tananaev/traccar/contents/{+path}","compare_url":"https://api.github.com/repos/tananaev/traccar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tananaev/traccar/merges","archive_url":"https://api.github.com/repos/tananaev/traccar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tananaev/traccar/downloads","issues_url":"https://api.github.com/repos/tananaev/traccar/issues{/number}","pulls_url":"https://api.github.com/repos/tananaev/traccar/pulls{/number}","milestones_url":"https://api.github.com/repos/tananaev/traccar/milestones{/number}","notifications_url":"https://api.github.com/repos/tananaev/traccar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tananaev/traccar/labels{/name}","releases_url":"https://api.github.com/repos/tananaev/traccar/releases{/id}","deployments_url":"https://api.github.com/repos/tananaev/traccar/deployments","created_at":"2012-04-16T08:33:49Z","updated_at":"2016-06-13T03:19:42Z","pushed_at":"2016-06-12T07:20:52Z","git_url":"git://github.com/tananaev/traccar.git","ssh_url":"git@github.com:tananaev/traccar.git","clone_url":"https://github.com/tananaev/traccar.git","svn_url":"https://github.com/tananaev/traccar","homepage":"https://www.traccar.org","size":7895,"stargazers_count":603,"watchers_count":603,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":548,"mirror_url":null,"open_issues_count":807,"forks":548,"open_issues":807,"watchers":603,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tananaev/traccar/pulls/2012"},"html":{"href":"https://github.com/tananaev/traccar/pull/2012"},"issue":{"href":"https://api.github.com/repos/tananaev/traccar/issues/2012"},"comments":{"href":"https://api.github.com/repos/tananaev/traccar/issues/2012/comments"},"review_comments":{"href":"https://api.github.com/repos/tananaev/traccar/pulls/2012/comments"},"review_comment":{"href":"https://api.github.com/repos/tananaev/traccar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tananaev/traccar/pulls/2012/commits"},"statuses":{"href":"https://api.github.com/repos/tananaev/traccar/statuses/a5cdddd4a304f75645a2b89b7e834e5750466c5b"}}}}
{"actor":{"display_login":"tananaev"}}