{"id":19784067,"url":"https://github.com/openeventdata/es-geonames","last_synced_at":"2025-04-30T22:32:01.431Z","repository":{"id":145265026,"uuid":"64249933","full_name":"openeventdata/es-geonames","owner":"openeventdata","description":"Create a Geonames gazetteer index in Elasticsearch","archived":false,"fork":false,"pushed_at":"2023-10-20T09:40:28.000Z","size":771,"stargazers_count":75,"open_issues_count":2,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T05:34:31.618Z","etag":null,"topics":["geonames"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openeventdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-07-26T19:51:32.000Z","updated_at":"2025-02-24T13:27:09.000Z","dependencies_parsed_at":"2024-11-12T06:20:20.351Z","dependency_job_id":null,"html_url":"https://github.com/openeventdata/es-geonames","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/openeventdata%2Fes-geonames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openeventdata%2Fes-geonames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openeventdata%2Fes-geonames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openeventdata%2Fes-geonames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openeventdata","download_url":"https://codeload.github.com/openeventdata/es-geonames/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791726,"owners_count":21644447,"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":["geonames"],"created_at":"2024-11-12T06:10:14.168Z","updated_at":"2025-04-30T22:32:01.141Z","avatar_url":"https://github.com/openeventdata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ES-Geonames\n===========\n\nCreate a [Geonames](http://www.geonames.org/) index running locally in\nElasticsearch container. The index is stored in a data volume, which can be\nmoved elsewhere and quickly stood up.\n\nTo download the Geonames.org gazetter, set up Dockerized Elasticsearch, and\nload the gazetteer into Elasticsearch, clone this repository and run\n\n```\nbash create_index.sh\n```\n\nThe `geonames_index/` directory can be compressed and moved elsewhere. To start a new\nElasticsearch instance using the prepared index, run\n\n```\ndocker run -d -p 127.0.0.1:9200:9200 -v /PATH/TO/geoname_index/data/:/usr/share/elasticsearch/data elasticsearch:7.10.1\n```\n\nwhere `/PATH/TO/geonames_index/data/` is the full path to the decompressed\nindex on your host machine. Depending on how you have Docker configured, you\nmay need to run this command with `sudo`.\n\nThis Geonames index is meant to be used with [Mordecai](https://github.com/openeventdata/mordecai), a full-text geoparser.\n\n# Windows Installation\nThis segment concern windows, for some weird reason, using Git-Bash with `create_index.sh` will map the volume to `PROGRAM FILES\\GIT\\USR\\SHARE\\ELASTICSEARCH\\DATA`\n-\u003e which mess up the docker volume.\n\nI assume you already have dockerized elasticsearch:7.10.1 on your system, If not:\n`docker pull elasticsearch:7.10.1`\n\nTo setup this repo on windows:\n```\n1. (Terminal) mkdir geoname_index\n2. (Terminal) docker run -dp 127.0.0.1:9200:9200 -e \"discovery.type=single-node\" -v %cd%/geoname_index/:/usr/share/elasticsearch/data elasticsearch:7.10.1 \n3. Download these stuff to this directory:\n    - https://download.geonames.org/export/dump/allCountries.zip\n    - https://download.geonames.org/export/dump/admin1CodesASCII.txt\n    - https://download.geonames.org/export/dump/admin2Codes.txt\n4. unzip allCountries.zip\n5. (Git-Bash) create_index_windows.sh\n```\n\nThe `geonames_index/` directory can be compressed and moved elsewhere. To start a new\nElasticsearch instance using the prepared index, run\n\n```\ndocker run -d -p 127.0.0.1:9200:9200 -e \"discovery.type=single-node\" -v /PATH/TO/geoname_index/:/usr/share/elasticsearch/data elasticsearch:7.10.1\n```\n## Changes\n\nApril 2021: The fields in the Elasticsearch index have changed slightly and now\ninclude `admin1_name` and `admin2_name` fields. See the\n[mapping](https://github.com/openeventdata/es-geonames/blob/master/geonames_mapping.json)\nfor the new field names.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopeneventdata%2Fes-geonames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopeneventdata%2Fes-geonames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopeneventdata%2Fes-geonames/lists"}