{"id":20963842,"url":"https://github.com/codemix/geonames-importer","last_synced_at":"2025-05-14T09:31:39.610Z","repository":{"id":22523898,"uuid":"25864392","full_name":"codemix/geonames-importer","owner":"codemix","description":"Imports geonames data into elasticsearch","archived":false,"fork":false,"pushed_at":"2014-11-01T23:53:05.000Z","size":148,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T15:42:52.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/codemix.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}},"created_at":"2014-10-28T10:36:28.000Z","updated_at":"2017-08-13T14:50:13.000Z","dependencies_parsed_at":"2022-07-25T09:17:08.409Z","dependency_job_id":null,"html_url":"https://github.com/codemix/geonames-importer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fgeonames-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fgeonames-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fgeonames-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fgeonames-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemix","download_url":"https://codeload.github.com/codemix/geonames-importer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254112256,"owners_count":22016720,"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-11-19T02:48:35.063Z","updated_at":"2025-05-14T09:31:34.597Z","avatar_url":"https://github.com/codemix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geonames Importer\n\nImports geonames.org data into elasticsearch.\n\n\u003e Note: Work In Progress.\n\n## Install\n```sh\nnpm install --save geonames-importer\n```\n\n## Usage\n\n```js\nvar Importer = require('geonames-importer');\n\nvar importer = new Importer({\n  filename: 'cities1000.txt',\n  index: 'myindex',\n  transformers: [\n    function (item) {\n      return {\n        id: item.id,\n        name: item.name,\n        geopoint: {\n          lat: item.latitude,\n          lon: item.longitude\n        }\n      };\n    },\n    function (item) {\n      item.name = item.name.toUpperCase();\n      return item;\n    }\n  ]\n});\n\nimporter\n.import()\n.then(function () {\n  console.log('finished');\n})\n.done();\n\n// or, with downloader\n\nvar Downloader = require('geonames-importer/downloader');\n\nvar downloader = new Downloader({\n  tmp: '/tmp'\n});\n\nimporter\n.import(downloader.cities(1000))\n.then(function () {\n  console.log('finished');\n})\n.done();\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fgeonames-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemix%2Fgeonames-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fgeonames-importer/lists"}