{"id":16731621,"url":"https://github.com/missinglink/whosonthecouch","last_synced_at":"2026-01-03T07:04:28.920Z","repository":{"id":140480682,"uuid":"99225548","full_name":"missinglink/whosonthecouch","owner":"missinglink","description":"import whosonfirst data in to couchdb","archived":false,"fork":false,"pushed_at":"2017-08-03T12:34:03.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T08:11:20.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/missinglink.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-03T11:28:34.000Z","updated_at":"2017-08-04T11:37:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"734ff295-8845-4bb0-8ef8-ce76fc6be8e9","html_url":"https://github.com/missinglink/whosonthecouch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fwhosonthecouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fwhosonthecouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fwhosonthecouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missinglink%2Fwhosonthecouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missinglink","download_url":"https://codeload.github.com/missinglink/whosonthecouch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243771318,"owners_count":20345439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T23:38:10.691Z","updated_at":"2026-01-03T07:04:28.815Z","avatar_url":"https://github.com/missinglink.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# who's on the couch?\n\na quick'n'easy way to import whosonfirst data in to couchdb\n\n### install couch db\n\n```bash\ndocker run -p 5984:5984 -d couchdb\n```\n\nyou now have a fancy GUI running at: http://localhost:5984/_utils/\n\n### create an index\n\n```bash\ncurl -X PUT http://localhost:5984/wof\n```\n\n### import all the data\n\n```bash\nfind '/whosonfirst-data/data' -type f -name '*.geojson' | parallel --no-notice curl -s -XPUT \"http://localhost:5984/wof/{/.}\" -d \"@{}\"\n```\n\n### import only some of the data (advanced usage)\n\ncreate a filter file which lists all the placetypes you're interested in (name it `placetype.filter`):\n\n```bash\n\"wof:placetype\":\\s*\"\\(continent\\|country\\|dependency\\|disputed\\|macroregion\\|region\\|macrocounty\\|county\\|localadmin\\|locality\\|borough\\|macrohood\\|neighbourhood\\)\"\n```\n\nand then just add it to the pipeline:\n\n```bash\nfunction placetypeFilter {\n  while IFS= read -r FILENAME; do\n    grep --files-with-match -f \"placetype.filter\" \"${FILENAME}\" || true;\n  done\n}\n\nfind '/whosonfirst-data/data' -type f -name '*.geojson' | placetypeFilter | parallel --no-notice curl -s -XPUT \"http://localhost:5984/wof/{/.}\" -d \"@{}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissinglink%2Fwhosonthecouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissinglink%2Fwhosonthecouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissinglink%2Fwhosonthecouch/lists"}