{"action":"created","comment":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/55519824","id":55519824,"diff_hunk":"@@ -1,36 +1,19 @@\n ifndef::es_build[= placeholder4]\r\n \r\n [[geoloc]]\r\n-= Geolocation\r\n+= 地理位置\r\n \r\n-[partintro]\r\n+［章节介绍］\r\n --\r\n-Gone are the days when we wander around a city with paper maps. Thanks to\r\n-smartphones, we now know exactly (((\"geolocation\")))where we are all the time, and we expect\r\n-websites to use that information.  I'm not interested in restaurants in\r\n-Greater London--I want to know about restaurants within a 5-minute walk of my\r\n-current location.\r\n-\r\n-But geolocation is only one part of the puzzle.  The beauty of Elasticsearch\r\n-is that it allows you to combine geolocation with full-text search, structured\r\n-search, and analytics.\r\n-\r\n-For instance: show me restaurants that mention _vitello tonnato_, are within a 5-minute walk, and are open at 11 p.m., and then rank them by a combination of user\r\n-rating, distance, and price. Another example: show me a map of vacation rental\r\n-properties available in August throughout the city, and calculate the average\r\n-price per zone.\r\n-\r\n-Elasticsearch offers two ways of (((\"Elasticsearch\", \"representing geolocations\")))representing geolocations: latitude-longitude\r\n-points using the `geo_point` field type,(((\"geo_point field type\"))) and complex shapes defined in\r\n-http://en.wikipedia.org/wiki/GeoJSON[GeoJSON], using the `geo_shape` field\r\n-type.(((\"geo_shape field type\")))\r\n-\r\n-_Geo-points_ allow you to find points within a certain distance of another\r\n-point, to calculate distances between two points for sorting or relevance\r\n-scoring, or to aggregate into a grid to display on a map.  _Geo-shapes_, on the\r\n-other hand, are used purely for filtering.  They can be used to decide whether\r\n-two shapes overlap, or whether one shape completely contains other\r\n-shapes.\r\n+我们拿着纸质地图漫步城市的日子一去不返了。得益于智能手机，我们现在总是可以知道自己所处的准确位置，也预料到网站会使用这些信息。我想知道从当前位置步行5分钟内可到的那些餐馆，对伦敦更大范围内的其他餐馆并不感兴趣。\r\n+\r\n+但地理位置功能仅仅是 Elasticsearch 的冰山一角，Elasticsearch 的妙处在于，它让你可以把地理位置、全文搜索、结构化搜索和分析结合到一起。\r\n+\r\n+例如：告诉我提到 _vitello tonnato_ 这种食物、步行5分钟内可到、且晚上11点还营业的餐厅，然后结合用户评价、距离、价格排序。另一个例子：给我展示一幅整个城市8月份可用假期出租物业的地图，并计算出每个区域的平均价格。\r\n+\r\n+Elasticsearch 提供了两种表示地理位置的方式：用纬度－经度表示的坐标点使用“geo_point”字段类型，以 GeoJSON（见wiki http://en.wikipedia.org/wiki/GeoJSON ）格式定义的复杂地理形状使用“geo_shape”字段类型。\r","path":"04_Geolocation.asciidoc","position":42,"original_position":42,"commit_id":"a6db5c49d7bae638356f6acea5416f0126aabc72","original_commit_id":"a6db5c49d7bae638356f6acea5416f0126aabc72","user":{"login":"medcl","id":64487,"avatar_url":"https://avatars.githubusercontent.com/u/64487?v=3","gravatar_id":"","url":"https://api.github.com/users/medcl","html_url":"https://github.com/medcl","followers_url":"https://api.github.com/users/medcl/followers","following_url":"https://api.github.com/users/medcl/following{/other_user}","gists_url":"https://api.github.com/users/medcl/gists{/gist_id}","starred_url":"https://api.github.com/users/medcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medcl/subscriptions","organizations_url":"https://api.github.com/users/medcl/orgs","repos_url":"https://api.github.com/users/medcl/repos","events_url":"https://api.github.com/users/medcl/events{/privacy}","received_events_url":"https://api.github.com/users/medcl/received_events","type":"User","site_admin":false},"body":"``` (((\"Elasticsearch\", \"representing geolocations\")))  ``` 这种格式的内容需要保留","created_at":"2016-03-09T13:52:30Z","updated_at":"2016-03-09T13:52:30Z","html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/19#discussion_r55519824","pull_request_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/55519824"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/19#discussion_r55519824"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19","id":62019644,"html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/19","diff_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/19.diff","patch_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/19.patch","issue_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/19","number":19,"state":"open","locked":false,"title":"chapterP5_part1: /04_Geolocation.asciidoc","user":{"login":"Lywangwenbin","id":6322372,"avatar_url":"https://avatars.githubusercontent.com/u/6322372?v=3","gravatar_id":"","url":"https://api.github.com/users/Lywangwenbin","html_url":"https://github.com/Lywangwenbin","followers_url":"https://api.github.com/users/Lywangwenbin/followers","following_url":"https://api.github.com/users/Lywangwenbin/following{/other_user}","gists_url":"https://api.github.com/users/Lywangwenbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Lywangwenbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lywangwenbin/subscriptions","organizations_url":"https://api.github.com/users/Lywangwenbin/orgs","repos_url":"https://api.github.com/users/Lywangwenbin/repos","events_url":"https://api.github.com/users/Lywangwenbin/events{/privacy}","received_events_url":"https://api.github.com/users/Lywangwenbin/received_events","type":"User","site_admin":false},"body":"翻译内容对应04_Geolocation.asciidoc文档","created_at":"2016-03-08T03:28:07Z","updated_at":"2016-03-09T13:52:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d04262498b59db14ff3fd02b3932ba3d042d2dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19/commits","review_comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19/comments","review_comment_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/19/comments","statuses_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/a6db5c49d7bae638356f6acea5416f0126aabc72","head":{"label":"Lywangwenbin:chapter/P5_Geolocation","ref":"chapter/P5_Geolocation","sha":"a6db5c49d7bae638356f6acea5416f0126aabc72","user":{"login":"Lywangwenbin","id":6322372,"avatar_url":"https://avatars.githubusercontent.com/u/6322372?v=3","gravatar_id":"","url":"https://api.github.com/users/Lywangwenbin","html_url":"https://github.com/Lywangwenbin","followers_url":"https://api.github.com/users/Lywangwenbin/followers","following_url":"https://api.github.com/users/Lywangwenbin/following{/other_user}","gists_url":"https://api.github.com/users/Lywangwenbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Lywangwenbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lywangwenbin/subscriptions","organizations_url":"https://api.github.com/users/Lywangwenbin/orgs","repos_url":"https://api.github.com/users/Lywangwenbin/repos","events_url":"https://api.github.com/users/Lywangwenbin/events{/privacy}","received_events_url":"https://api.github.com/users/Lywangwenbin/received_events","type":"User","site_admin":false},"repo":{"id":52758973,"name":"elasticsearch-definitive-guide","full_name":"Lywangwenbin/elasticsearch-definitive-guide","owner":{"login":"Lywangwenbin","id":6322372,"avatar_url":"https://avatars.githubusercontent.com/u/6322372?v=3","gravatar_id":"","url":"https://api.github.com/users/Lywangwenbin","html_url":"https://github.com/Lywangwenbin","followers_url":"https://api.github.com/users/Lywangwenbin/followers","following_url":"https://api.github.com/users/Lywangwenbin/following{/other_user}","gists_url":"https://api.github.com/users/Lywangwenbin/gists{/gist_id}","starred_url":"https://api.github.com/users/Lywangwenbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lywangwenbin/subscriptions","organizations_url":"https://api.github.com/users/Lywangwenbin/orgs","repos_url":"https://api.github.com/users/Lywangwenbin/repos","events_url":"https://api.github.com/users/Lywangwenbin/events{/privacy}","received_events_url":"https://api.github.com/users/Lywangwenbin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lywangwenbin/elasticsearch-definitive-guide","description":"","fork":true,"url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide","forks_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/forks","keys_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/teams","hooks_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/hooks","issue_events_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/issues/events{/number}","events_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/events","assignees_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/assignees{/user}","branches_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/branches{/branch}","tags_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/tags","blobs_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/languages","stargazers_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/stargazers","contributors_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/contributors","subscribers_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/subscribers","subscription_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/subscription","commits_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/contents/{+path}","compare_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/merges","archive_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/downloads","issues_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/issues{/number}","pulls_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/labels{/name}","releases_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/releases{/id}","deployments_url":"https://api.github.com/repos/Lywangwenbin/elasticsearch-definitive-guide/deployments","created_at":"2016-02-29T02:45:42Z","updated_at":"2016-02-29T03:44:07Z","pushed_at":"2016-03-08T13:44:21Z","git_url":"git://github.com/Lywangwenbin/elasticsearch-definitive-guide.git","ssh_url":"git@github.com:Lywangwenbin/elasticsearch-definitive-guide.git","clone_url":"https://github.com/Lywangwenbin/elasticsearch-definitive-guide.git","svn_url":"https://github.com/Lywangwenbin/elasticsearch-definitive-guide","homepage":null,"size":7202,"stargazers_count":1,"watchers_count":1,"language":"HTML","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":1,"default_branch":"master"}},"base":{"label":"elasticsearch-cn:cn","ref":"cn","sha":"3e31f3ed1ef596586c0eada5688576595da9684d","user":{"login":"elasticsearch-cn","id":2517572,"avatar_url":"https://avatars.githubusercontent.com/u/2517572?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsearch-cn","html_url":"https://github.com/elasticsearch-cn","followers_url":"https://api.github.com/users/elasticsearch-cn/followers","following_url":"https://api.github.com/users/elasticsearch-cn/following{/other_user}","gists_url":"https://api.github.com/users/elasticsearch-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsearch-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsearch-cn/subscriptions","organizations_url":"https://api.github.com/users/elasticsearch-cn/orgs","repos_url":"https://api.github.com/users/elasticsearch-cn/repos","events_url":"https://api.github.com/users/elasticsearch-cn/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsearch-cn/received_events","type":"Organization","site_admin":false},"repo":{"id":20916742,"name":"elasticsearch-definitive-guide","full_name":"elasticsearch-cn/elasticsearch-definitive-guide","owner":{"login":"elasticsearch-cn","id":2517572,"avatar_url":"https://avatars.githubusercontent.com/u/2517572?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsearch-cn","html_url":"https://github.com/elasticsearch-cn","followers_url":"https://api.github.com/users/elasticsearch-cn/followers","following_url":"https://api.github.com/users/elasticsearch-cn/following{/other_user}","gists_url":"https://api.github.com/users/elasticsearch-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsearch-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsearch-cn/subscriptions","organizations_url":"https://api.github.com/users/elasticsearch-cn/orgs","repos_url":"https://api.github.com/users/elasticsearch-cn/repos","events_url":"https://api.github.com/users/elasticsearch-cn/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsearch-cn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide","description":"欢迎加群：109764489，贡献力量！","fork":true,"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide","forks_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/forks","keys_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/teams","hooks_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/hooks","issue_events_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/events{/number}","events_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/events","assignees_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/assignees{/user}","branches_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/branches{/branch}","tags_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/tags","blobs_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/languages","stargazers_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/stargazers","contributors_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/contributors","subscribers_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/subscribers","subscription_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/subscription","commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/contents/{+path}","compare_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/merges","archive_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/downloads","issues_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues{/number}","pulls_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/labels{/name}","releases_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/releases{/id}","deployments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/deployments","created_at":"2014-06-17T08:56:29Z","updated_at":"2016-03-09T12:45:57Z","pushed_at":"2016-03-09T13:46:12Z","git_url":"git://github.com/elasticsearch-cn/elasticsearch-definitive-guide.git","ssh_url":"git@github.com:elasticsearch-cn/elasticsearch-definitive-guide.git","clone_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide.git","svn_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide","homepage":"","size":7278,"stargazers_count":17,"watchers_count":17,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":11,"forks":27,"open_issues":11,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/19"},"issue":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/19"},"comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/a6db5c49d7bae638356f6acea5416f0126aabc72"}}}}