{"action":"created","comment":{"url":"https://api.github.com/repos/etalab/geozones/pulls/comments/69432702","id":69432702,"diff_hunk":"@@ -0,0 +1,118 @@\n+GeoZones\n+========\n+\n+Simplistic spatial/administrative referential.\n+\n+This project is a set of tools to produce a shared spatial/administrative referential based on open datasets.\n+\n+The purpose is to be embeddable in applications for autocompletion. There is no purpose of universality (country levels are not comparable) nor precision (most sourced datasets have a 100m precision).\n+\n+These tools work on and exports _WGS84_ spatial data.\n+\n+Requirements\n+------------\n+\n+This project uses MongoDB 2.6+ and GDAL as main tooling. Build tools are written in Python 3 and make use of:\n+\n+-   click\n+-   PyMongo\n+-   Fiona\n+-   Shapely\n+\n+The web interface requires Flask.\n+\n+Translations requires Babel and Transifex client.\n+\n+Getting started\n+---------------\n+\n+There are many way of getting a development environment started.\n+\n+Assuming you have Virtualenv and MongoDB installed and configured on you computer:\n+\n+``` sourceCode\n+$ git clone https://github.com/etalab/geozones.git\n+$ cd geozones\n+$ virtualenv -p /bin/python3 .\n+$ source bin/activate\n+$ pip install -r requirements.pip\n+$ ./geozones.py\n+```\n+\n+Model\n+-----\n+\n+There are two main models:\n+\n+-   level hierarchies\n+-   zone/territories\n+\n+GeoZones use MongoDB as working storage.\n+\n+### Levels\n+\n+They define relationships between levels and their names. They are not stored into any database.\n+\n+### Zones\n+\n+A zone is a spatial polygon for a given level. It has at least one unique code (unique on its level) and a name. It can have many known keys, that are not necessarily unique (ie. postal codes can be shared by many towns).\n+\n+Labels are optionally translatable.\n+\n+Some zones are defined as an aggregation of other zones. They are called _aggregation_ in geozones and builded after all data are loaded.\n+\n+The following properties are exported in the GeoJSON output:\n+\n+id  ","path":"README.md","position":66,"original_position":66,"commit_id":"47a69a02bdf7ee2439681f9c3636b570e2c65b02","original_commit_id":"47a69a02bdf7ee2439681f9c3636b570e2c65b02","user":{"login":"davidbgk","id":3556,"avatar_url":"https://avatars.githubusercontent.com/u/3556?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbgk","html_url":"https://github.com/davidbgk","followers_url":"https://api.github.com/users/davidbgk/followers","following_url":"https://api.github.com/users/davidbgk/following{/other_user}","gists_url":"https://api.github.com/users/davidbgk/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbgk/subscriptions","organizations_url":"https://api.github.com/users/davidbgk/orgs","repos_url":"https://api.github.com/users/davidbgk/repos","events_url":"https://api.github.com/users/davidbgk/events{/privacy}","received_events_url":"https://api.github.com/users/davidbgk/received_events","type":"User","site_admin":false},"body":"I think it will not render as expected, maybe transform to a table?","created_at":"2016-07-04T09:38:39Z","updated_at":"2016-07-04T09:38:39Z","html_url":"https://github.com/etalab/geozones/pull/23#discussion_r69432702","pull_request_url":"https://api.github.com/repos/etalab/geozones/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/etalab/geozones/pulls/comments/69432702"},"html":{"href":"https://github.com/etalab/geozones/pull/23#discussion_r69432702"},"pull_request":{"href":"https://api.github.com/repos/etalab/geozones/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/etalab/geozones/pulls/23","id":76136765,"html_url":"https://github.com/etalab/geozones/pull/23","diff_url":"https://github.com/etalab/geozones/pull/23.diff","patch_url":"https://github.com/etalab/geozones/pull/23.patch","issue_url":"https://api.github.com/repos/etalab/geozones/issues/23","number":23,"state":"open","locked":false,"title":"changed readme format to markdown","user":{"login":"vinyll","id":145172,"avatar_url":"https://avatars.githubusercontent.com/u/145172?v=3","gravatar_id":"","url":"https://api.github.com/users/vinyll","html_url":"https://github.com/vinyll","followers_url":"https://api.github.com/users/vinyll/followers","following_url":"https://api.github.com/users/vinyll/following{/other_user}","gists_url":"https://api.github.com/users/vinyll/gists{/gist_id}","starred_url":"https://api.github.com/users/vinyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinyll/subscriptions","organizations_url":"https://api.github.com/users/vinyll/orgs","repos_url":"https://api.github.com/users/vinyll/repos","events_url":"https://api.github.com/users/vinyll/events{/privacy}","received_events_url":"https://api.github.com/users/vinyll/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-04T09:37:09Z","updated_at":"2016-07-04T09:38:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/etalab/geozones/pulls/23/commits","review_comments_url":"https://api.github.com/repos/etalab/geozones/pulls/23/comments","review_comment_url":"https://api.github.com/repos/etalab/geozones/pulls/comments{/number}","comments_url":"https://api.github.com/repos/etalab/geozones/issues/23/comments","statuses_url":"https://api.github.com/repos/etalab/geozones/statuses/47a69a02bdf7ee2439681f9c3636b570e2c65b02","head":{"label":"vinyll:rst2md","ref":"rst2md","sha":"47a69a02bdf7ee2439681f9c3636b570e2c65b02","user":{"login":"vinyll","id":145172,"avatar_url":"https://avatars.githubusercontent.com/u/145172?v=3","gravatar_id":"","url":"https://api.github.com/users/vinyll","html_url":"https://github.com/vinyll","followers_url":"https://api.github.com/users/vinyll/followers","following_url":"https://api.github.com/users/vinyll/following{/other_user}","gists_url":"https://api.github.com/users/vinyll/gists{/gist_id}","starred_url":"https://api.github.com/users/vinyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinyll/subscriptions","organizations_url":"https://api.github.com/users/vinyll/orgs","repos_url":"https://api.github.com/users/vinyll/repos","events_url":"https://api.github.com/users/vinyll/events{/privacy}","received_events_url":"https://api.github.com/users/vinyll/received_events","type":"User","site_admin":false},"repo":{"id":62549581,"name":"geozones","full_name":"vinyll/geozones","owner":{"login":"vinyll","id":145172,"avatar_url":"https://avatars.githubusercontent.com/u/145172?v=3","gravatar_id":"","url":"https://api.github.com/users/vinyll","html_url":"https://github.com/vinyll","followers_url":"https://api.github.com/users/vinyll/followers","following_url":"https://api.github.com/users/vinyll/following{/other_user}","gists_url":"https://api.github.com/users/vinyll/gists{/gist_id}","starred_url":"https://api.github.com/users/vinyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinyll/subscriptions","organizations_url":"https://api.github.com/users/vinyll/orgs","repos_url":"https://api.github.com/users/vinyll/repos","events_url":"https://api.github.com/users/vinyll/events{/privacy}","received_events_url":"https://api.github.com/users/vinyll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinyll/geozones","description":"Simple spatial/administrative referential","fork":true,"url":"https://api.github.com/repos/vinyll/geozones","forks_url":"https://api.github.com/repos/vinyll/geozones/forks","keys_url":"https://api.github.com/repos/vinyll/geozones/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinyll/geozones/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinyll/geozones/teams","hooks_url":"https://api.github.com/repos/vinyll/geozones/hooks","issue_events_url":"https://api.github.com/repos/vinyll/geozones/issues/events{/number}","events_url":"https://api.github.com/repos/vinyll/geozones/events","assignees_url":"https://api.github.com/repos/vinyll/geozones/assignees{/user}","branches_url":"https://api.github.com/repos/vinyll/geozones/branches{/branch}","tags_url":"https://api.github.com/repos/vinyll/geozones/tags","blobs_url":"https://api.github.com/repos/vinyll/geozones/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinyll/geozones/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinyll/geozones/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinyll/geozones/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinyll/geozones/statuses/{sha}","languages_url":"https://api.github.com/repos/vinyll/geozones/languages","stargazers_url":"https://api.github.com/repos/vinyll/geozones/stargazers","contributors_url":"https://api.github.com/repos/vinyll/geozones/contributors","subscribers_url":"https://api.github.com/repos/vinyll/geozones/subscribers","subscription_url":"https://api.github.com/repos/vinyll/geozones/subscription","commits_url":"https://api.github.com/repos/vinyll/geozones/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinyll/geozones/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinyll/geozones/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinyll/geozones/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinyll/geozones/contents/{+path}","compare_url":"https://api.github.com/repos/vinyll/geozones/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinyll/geozones/merges","archive_url":"https://api.github.com/repos/vinyll/geozones/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinyll/geozones/downloads","issues_url":"https://api.github.com/repos/vinyll/geozones/issues{/number}","pulls_url":"https://api.github.com/repos/vinyll/geozones/pulls{/number}","milestones_url":"https://api.github.com/repos/vinyll/geozones/milestones{/number}","notifications_url":"https://api.github.com/repos/vinyll/geozones/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinyll/geozones/labels{/name}","releases_url":"https://api.github.com/repos/vinyll/geozones/releases{/id}","deployments_url":"https://api.github.com/repos/vinyll/geozones/deployments","created_at":"2016-07-04T09:27:56Z","updated_at":"2016-07-04T09:27:57Z","pushed_at":"2016-07-04T09:36:48Z","git_url":"git://github.com/vinyll/geozones.git","ssh_url":"git@github.com:vinyll/geozones.git","clone_url":"https://github.com/vinyll/geozones.git","svn_url":"https://github.com/vinyll/geozones","homepage":null,"size":261,"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":"etalab:master","ref":"master","sha":"a5600eda5998e3e8a51c5572c5a410f244487b81","user":{"login":"etalab","id":5313610,"avatar_url":"https://avatars.githubusercontent.com/u/5313610?v=3","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":33991469,"name":"geozones","full_name":"etalab/geozones","owner":{"login":"etalab","id":5313610,"avatar_url":"https://avatars.githubusercontent.com/u/5313610?v=3","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/etalab/geozones","description":"Simple spatial/administrative referential","fork":false,"url":"https://api.github.com/repos/etalab/geozones","forks_url":"https://api.github.com/repos/etalab/geozones/forks","keys_url":"https://api.github.com/repos/etalab/geozones/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/geozones/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/geozones/teams","hooks_url":"https://api.github.com/repos/etalab/geozones/hooks","issue_events_url":"https://api.github.com/repos/etalab/geozones/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/geozones/events","assignees_url":"https://api.github.com/repos/etalab/geozones/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/geozones/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/geozones/tags","blobs_url":"https://api.github.com/repos/etalab/geozones/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/geozones/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/geozones/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/geozones/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/geozones/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/geozones/languages","stargazers_url":"https://api.github.com/repos/etalab/geozones/stargazers","contributors_url":"https://api.github.com/repos/etalab/geozones/contributors","subscribers_url":"https://api.github.com/repos/etalab/geozones/subscribers","subscription_url":"https://api.github.com/repos/etalab/geozones/subscription","commits_url":"https://api.github.com/repos/etalab/geozones/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/geozones/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/geozones/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/geozones/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/geozones/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/geozones/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/geozones/merges","archive_url":"https://api.github.com/repos/etalab/geozones/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/geozones/downloads","issues_url":"https://api.github.com/repos/etalab/geozones/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/geozones/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/geozones/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/geozones/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/geozones/labels{/name}","releases_url":"https://api.github.com/repos/etalab/geozones/releases{/id}","deployments_url":"https://api.github.com/repos/etalab/geozones/deployments","created_at":"2015-04-15T12:06:35Z","updated_at":"2016-03-31T07:47:56Z","pushed_at":"2016-07-04T09:37:10Z","git_url":"git://github.com/etalab/geozones.git","ssh_url":"git@github.com:etalab/geozones.git","clone_url":"https://github.com/etalab/geozones.git","svn_url":"https://github.com/etalab/geozones","homepage":null,"size":261,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/etalab/geozones/pulls/23"},"html":{"href":"https://github.com/etalab/geozones/pull/23"},"issue":{"href":"https://api.github.com/repos/etalab/geozones/issues/23"},"comments":{"href":"https://api.github.com/repos/etalab/geozones/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/etalab/geozones/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/etalab/geozones/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/etalab/geozones/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/etalab/geozones/statuses/47a69a02bdf7ee2439681f9c3636b570e2c65b02"}}}}
{"actor":{"display_login":"davidbgk"}}