{"action":"created","comment":{"url":"https://api.github.com/repos/osmandapp/Osmand/pulls/comments/22949027","id":22949027,"diff_hunk":"@@ -32,7 +35,7 @@\n         'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',\n         'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n         'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',\n-        '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '_', '@'\n+        '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '_', '~'","path":"OsmAnd-java/src/net/osmand/util/MapUtils.java","position":24,"original_position":24,"commit_id":"4353c5c6ff9af51d5ca274c1cbd99281f7b501c4","original_commit_id":"4353c5c6ff9af51d5ca274c1cbd99281f7b501c4","user":{"login":"eighthave","id":143465,"avatar_url":"https://avatars.githubusercontent.com/u/143465?v=3","gravatar_id":"","url":"https://api.github.com/users/eighthave","html_url":"https://github.com/eighthave","followers_url":"https://api.github.com/users/eighthave/followers","following_url":"https://api.github.com/users/eighthave/following{/other_user}","gists_url":"https://api.github.com/users/eighthave/gists{/gist_id}","starred_url":"https://api.github.com/users/eighthave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eighthave/subscriptions","organizations_url":"https://api.github.com/users/eighthave/orgs","repos_url":"https://api.github.com/users/eighthave/repos","events_url":"https://api.github.com/users/eighthave/events{/privacy}","received_events_url":"https://api.github.com/users/eighthave/received_events","type":"User","site_admin":false},"body":"Only because that is what OpenStreetMap has done.  If you follow this link included in the commit message:\r\nhttps://wiki.openstreetmap.org/wiki/Shortlink#Code_for_encoding_.26_decoding\r\n\r\nThere are a few links to example code that demonstrate this.  Perhaps this one is particularly interesting:\r\nhttps://github.com/openstreetmap/openstreetmap-website/blob/e84b2bd22f7c92fb7a128a91c999f86e350bf04d/app/assets/javascripts/application.js#L188\r\n\r\nBut this made me notice that one key change didn't make it into this commit, so I'm adding this snippet and rebasing:\r\n\r\n```diff\r\n \tpublic static GeoParsedPoint decodeShortLinkString(String s) {\r\n+\t\t// convert old shortlink format to current one\r\n+\t\ts = s.replaceAll(\"@\", \"~\");\r\n```","created_at":"2015-01-14T16:35:30Z","updated_at":"2015-01-14T16:35:30Z","html_url":"https://github.com/osmandapp/Osmand/pull/1037#discussion_r22949027","pull_request_url":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037","_links":{"self":{"href":"https://api.github.com/repos/osmandapp/Osmand/pulls/comments/22949027"},"html":{"href":"https://github.com/osmandapp/Osmand/pull/1037#discussion_r22949027"},"pull_request":{"href":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037"}}},"pull_request":{"url":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037","id":27299763,"html_url":"https://github.com/osmandapp/Osmand/pull/1037","diff_url":"https://github.com/osmandapp/Osmand/pull/1037.diff","patch_url":"https://github.com/osmandapp/Osmand/pull/1037.patch","issue_url":"https://api.github.com/repos/osmandapp/Osmand/issues/1037","number":1037,"state":"closed","locked":false,"title":"Update URL parsing to include OSM shortlinks, Baidu, Apple, AutoNavi","user":{"login":"eighthave","id":143465,"avatar_url":"https://avatars.githubusercontent.com/u/143465?v=3","gravatar_id":"","url":"https://api.github.com/users/eighthave","html_url":"https://github.com/eighthave","followers_url":"https://api.github.com/users/eighthave/followers","following_url":"https://api.github.com/users/eighthave/following{/other_user}","gists_url":"https://api.github.com/users/eighthave/gists{/gist_id}","starred_url":"https://api.github.com/users/eighthave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eighthave/subscriptions","organizations_url":"https://api.github.com/users/eighthave/orgs","repos_url":"https://api.github.com/users/eighthave/repos","events_url":"https://api.github.com/users/eighthave/events{/privacy}","received_events_url":"https://api.github.com/users/eighthave/received_events","type":"User","site_admin":false},"body":"This is a big update to the code that handles parsing incoming URLs for location information, and then displaying that location.  This reorganizes the code somewhat to make it easier to add more patterns and services. Then the new services are included, as well as support for decoding OpenStreetMap shortlinks.  There are also some bug fixes here and there, mostly related to bitrot.  Things like updated shortlink parsing (for example, OSM's format now uses `~` instead of `@`).\r\n\r\nThis includes a couple of commits that were originally included in #1033, but they were moved here since they are more relevant to this pull request.\r\n\r\nThis is probably of most interest to @alexey-pelykh, @Bars107, and @Zahnstocher since they have most recently worked on this code.","created_at":"2015-01-13T19:59:47Z","updated_at":"2015-01-14T16:35:30Z","closed_at":"2015-01-14T13:04:52Z","merged_at":null,"merge_commit_sha":"5fcb244cb1f9e0b857ab78bb67b48dcbdb020443","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037/commits","review_comments_url":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037/comments","review_comment_url":"https://api.github.com/repos/osmandapp/Osmand/pulls/comments/{number}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/issues/1037/comments","statuses_url":"https://api.github.com/repos/osmandapp/Osmand/statuses/4353c5c6ff9af51d5ca274c1cbd99281f7b501c4","head":{"label":"eighthave:update-url-parsing","ref":"update-url-parsing","sha":"4353c5c6ff9af51d5ca274c1cbd99281f7b501c4","user":{"login":"eighthave","id":143465,"avatar_url":"https://avatars.githubusercontent.com/u/143465?v=3","gravatar_id":"","url":"https://api.github.com/users/eighthave","html_url":"https://github.com/eighthave","followers_url":"https://api.github.com/users/eighthave/followers","following_url":"https://api.github.com/users/eighthave/following{/other_user}","gists_url":"https://api.github.com/users/eighthave/gists{/gist_id}","starred_url":"https://api.github.com/users/eighthave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eighthave/subscriptions","organizations_url":"https://api.github.com/users/eighthave/orgs","repos_url":"https://api.github.com/users/eighthave/repos","events_url":"https://api.github.com/users/eighthave/events{/privacy}","received_events_url":"https://api.github.com/users/eighthave/received_events","type":"User","site_admin":false},"repo":{"id":28594296,"name":"Osmand","full_name":"eighthave/Osmand","owner":{"login":"eighthave","id":143465,"avatar_url":"https://avatars.githubusercontent.com/u/143465?v=3","gravatar_id":"","url":"https://api.github.com/users/eighthave","html_url":"https://github.com/eighthave","followers_url":"https://api.github.com/users/eighthave/followers","following_url":"https://api.github.com/users/eighthave/following{/other_user}","gists_url":"https://api.github.com/users/eighthave/gists{/gist_id}","starred_url":"https://api.github.com/users/eighthave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eighthave/subscriptions","organizations_url":"https://api.github.com/users/eighthave/orgs","repos_url":"https://api.github.com/users/eighthave/repos","events_url":"https://api.github.com/users/eighthave/events{/privacy}","received_events_url":"https://api.github.com/users/eighthave/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eighthave/Osmand","description":"osmand","fork":true,"url":"https://api.github.com/repos/eighthave/Osmand","forks_url":"https://api.github.com/repos/eighthave/Osmand/forks","keys_url":"https://api.github.com/repos/eighthave/Osmand/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eighthave/Osmand/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eighthave/Osmand/teams","hooks_url":"https://api.github.com/repos/eighthave/Osmand/hooks","issue_events_url":"https://api.github.com/repos/eighthave/Osmand/issues/events{/number}","events_url":"https://api.github.com/repos/eighthave/Osmand/events","assignees_url":"https://api.github.com/repos/eighthave/Osmand/assignees{/user}","branches_url":"https://api.github.com/repos/eighthave/Osmand/branches{/branch}","tags_url":"https://api.github.com/repos/eighthave/Osmand/tags","blobs_url":"https://api.github.com/repos/eighthave/Osmand/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eighthave/Osmand/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eighthave/Osmand/git/refs{/sha}","trees_url":"https://api.github.com/repos/eighthave/Osmand/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eighthave/Osmand/statuses/{sha}","languages_url":"https://api.github.com/repos/eighthave/Osmand/languages","stargazers_url":"https://api.github.com/repos/eighthave/Osmand/stargazers","contributors_url":"https://api.github.com/repos/eighthave/Osmand/contributors","subscribers_url":"https://api.github.com/repos/eighthave/Osmand/subscribers","subscription_url":"https://api.github.com/repos/eighthave/Osmand/subscription","commits_url":"https://api.github.com/repos/eighthave/Osmand/commits{/sha}","git_commits_url":"https://api.github.com/repos/eighthave/Osmand/git/commits{/sha}","comments_url":"https://api.github.com/repos/eighthave/Osmand/comments{/number}","issue_comment_url":"https://api.github.com/repos/eighthave/Osmand/issues/comments/{number}","contents_url":"https://api.github.com/repos/eighthave/Osmand/contents/{+path}","compare_url":"https://api.github.com/repos/eighthave/Osmand/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eighthave/Osmand/merges","archive_url":"https://api.github.com/repos/eighthave/Osmand/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eighthave/Osmand/downloads","issues_url":"https://api.github.com/repos/eighthave/Osmand/issues{/number}","pulls_url":"https://api.github.com/repos/eighthave/Osmand/pulls{/number}","milestones_url":"https://api.github.com/repos/eighthave/Osmand/milestones{/number}","notifications_url":"https://api.github.com/repos/eighthave/Osmand/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eighthave/Osmand/labels{/name}","releases_url":"https://api.github.com/repos/eighthave/Osmand/releases{/id}","created_at":"2014-12-29T14:11:38Z","updated_at":"2015-01-13T20:02:37Z","pushed_at":"2015-01-13T20:02:36Z","git_url":"git://github.com/eighthave/Osmand.git","ssh_url":"git@github.com:eighthave/Osmand.git","clone_url":"https://github.com/eighthave/Osmand.git","svn_url":"https://github.com/eighthave/Osmand","homepage":"osmand.net","size":212974,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"osmandapp:master","ref":"master","sha":"6e1a3c216c00457a07b51626c3e308fd45f6b9d3","user":{"login":"osmandapp","id":566635,"avatar_url":"https://avatars.githubusercontent.com/u/566635?v=3","gravatar_id":"","url":"https://api.github.com/users/osmandapp","html_url":"https://github.com/osmandapp","followers_url":"https://api.github.com/users/osmandapp/followers","following_url":"https://api.github.com/users/osmandapp/following{/other_user}","gists_url":"https://api.github.com/users/osmandapp/gists{/gist_id}","starred_url":"https://api.github.com/users/osmandapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osmandapp/subscriptions","organizations_url":"https://api.github.com/users/osmandapp/orgs","repos_url":"https://api.github.com/users/osmandapp/repos","events_url":"https://api.github.com/users/osmandapp/events{/privacy}","received_events_url":"https://api.github.com/users/osmandapp/received_events","type":"Organization","site_admin":false},"repo":{"id":1258570,"name":"Osmand","full_name":"osmandapp/Osmand","owner":{"login":"osmandapp","id":566635,"avatar_url":"https://avatars.githubusercontent.com/u/566635?v=3","gravatar_id":"","url":"https://api.github.com/users/osmandapp","html_url":"https://github.com/osmandapp","followers_url":"https://api.github.com/users/osmandapp/followers","following_url":"https://api.github.com/users/osmandapp/following{/other_user}","gists_url":"https://api.github.com/users/osmandapp/gists{/gist_id}","starred_url":"https://api.github.com/users/osmandapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osmandapp/subscriptions","organizations_url":"https://api.github.com/users/osmandapp/orgs","repos_url":"https://api.github.com/users/osmandapp/repos","events_url":"https://api.github.com/users/osmandapp/events{/privacy}","received_events_url":"https://api.github.com/users/osmandapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osmandapp/Osmand","description":"osmand","fork":false,"url":"https://api.github.com/repos/osmandapp/Osmand","forks_url":"https://api.github.com/repos/osmandapp/Osmand/forks","keys_url":"https://api.github.com/repos/osmandapp/Osmand/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osmandapp/Osmand/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osmandapp/Osmand/teams","hooks_url":"https://api.github.com/repos/osmandapp/Osmand/hooks","issue_events_url":"https://api.github.com/repos/osmandapp/Osmand/issues/events{/number}","events_url":"https://api.github.com/repos/osmandapp/Osmand/events","assignees_url":"https://api.github.com/repos/osmandapp/Osmand/assignees{/user}","branches_url":"https://api.github.com/repos/osmandapp/Osmand/branches{/branch}","tags_url":"https://api.github.com/repos/osmandapp/Osmand/tags","blobs_url":"https://api.github.com/repos/osmandapp/Osmand/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osmandapp/Osmand/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osmandapp/Osmand/git/refs{/sha}","trees_url":"https://api.github.com/repos/osmandapp/Osmand/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osmandapp/Osmand/statuses/{sha}","languages_url":"https://api.github.com/repos/osmandapp/Osmand/languages","stargazers_url":"https://api.github.com/repos/osmandapp/Osmand/stargazers","contributors_url":"https://api.github.com/repos/osmandapp/Osmand/contributors","subscribers_url":"https://api.github.com/repos/osmandapp/Osmand/subscribers","subscription_url":"https://api.github.com/repos/osmandapp/Osmand/subscription","commits_url":"https://api.github.com/repos/osmandapp/Osmand/commits{/sha}","git_commits_url":"https://api.github.com/repos/osmandapp/Osmand/git/commits{/sha}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/comments{/number}","issue_comment_url":"https://api.github.com/repos/osmandapp/Osmand/issues/comments/{number}","contents_url":"https://api.github.com/repos/osmandapp/Osmand/contents/{+path}","compare_url":"https://api.github.com/repos/osmandapp/Osmand/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osmandapp/Osmand/merges","archive_url":"https://api.github.com/repos/osmandapp/Osmand/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osmandapp/Osmand/downloads","issues_url":"https://api.github.com/repos/osmandapp/Osmand/issues{/number}","pulls_url":"https://api.github.com/repos/osmandapp/Osmand/pulls{/number}","milestones_url":"https://api.github.com/repos/osmandapp/Osmand/milestones{/number}","notifications_url":"https://api.github.com/repos/osmandapp/Osmand/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osmandapp/Osmand/labels{/name}","releases_url":"https://api.github.com/repos/osmandapp/Osmand/releases{/id}","created_at":"2011-01-15T19:59:44Z","updated_at":"2015-01-14T10:51:17Z","pushed_at":"2015-01-14T16:11:13Z","git_url":"git://github.com/osmandapp/Osmand.git","ssh_url":"git@github.com:osmandapp/Osmand.git","clone_url":"https://github.com/osmandapp/Osmand.git","svn_url":"https://github.com/osmandapp/Osmand","homepage":"osmand.net","size":247414,"stargazers_count":389,"watchers_count":389,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":279,"mirror_url":null,"open_issues_count":14,"forks":279,"open_issues":14,"watchers":389,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037"},"html":{"href":"https://github.com/osmandapp/Osmand/pull/1037"},"issue":{"href":"https://api.github.com/repos/osmandapp/Osmand/issues/1037"},"comments":{"href":"https://api.github.com/repos/osmandapp/Osmand/issues/1037/comments"},"review_comments":{"href":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037/comments"},"review_comment":{"href":"https://api.github.com/repos/osmandapp/Osmand/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/osmandapp/Osmand/pulls/1037/commits"},"statuses":{"href":"https://api.github.com/repos/osmandapp/Osmand/statuses/4353c5c6ff9af51d5ca274c1cbd99281f7b501c4"}}}}