{"id":20374838,"url":"https://github.com/gisce/codigospostales","last_synced_at":"2025-04-12T07:13:22.273Z","repository":{"id":139296286,"uuid":"193861908","full_name":"gisce/codigospostales","owner":"gisce","description":"Elaboración fichero códigos postales + Código INE","archived":false,"fork":false,"pushed_at":"2024-09-09T15:26:40.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T07:13:16.508Z","etag":null,"topics":["hacktoberfest","ine","nomenclator","zipcodes"],"latest_commit_sha":null,"homepage":"","language":"Python","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/gisce.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":"2019-06-26T08:23:12.000Z","updated_at":"2025-02-05T19:02:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"20cd210e-3b93-427c-95cf-a30f6ee4bb34","html_url":"https://github.com/gisce/codigospostales","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fcodigospostales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fcodigospostales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fcodigospostales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fcodigospostales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/codigospostales/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530570,"owners_count":21119600,"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":["hacktoberfest","ine","nomenclator","zipcodes"],"created_at":"2024-11-15T01:27:17.784Z","updated_at":"2025-04-12T07:13:22.249Z","avatar_url":"https://github.com/gisce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Códigos postales con código INE\n\n## Fuente de datos\n\n- [Callejero del Censo Electoral](https://www.ine.es/uc/1dIJtjmEi1) (INE)\n- [Nomenclator](https://www.ine.es/uc/d3JnUsAO) (INE)\n\n## Preparación ficheros\n\n### Callejero del Censo Electoral\n\nDel fichero zip del callejero nos interesa el fichero `TRAM.XXXX`\n\n\u003e [!WARNING]\nEl problema es que el nombre del pueblo está limitado a 25 carácteres con lo que no tenemos todos los nombres correctos... para eso utilizaremos el **Nomenclator** y *mezclaremos* los dos ficheros\n\n### Nomenclator para corregir el nombre de la población\n\nDel fichero del Nomenclator nos interesa el fichero `NomdefXXX.txt`\n\n## Mezcla de ficheros\n\nConstrucción fichero final:\n\n- Si no tenemos pandas lo debemos instalar:\n\n```bash\npip install pandas\n```\n- Creamos el fichero `zipcodes.csv`\n\n```bash\npython merge.py \u003ctram_path\u003e \u003cnomdef_path\u003e \u003coutput_path\u003e\n```\n\nDonde:\n- `\u003ctram_path\u003e` es la ruta al fichero `tramos.txt` (preparado a partir del Callejero del Censo Electoral).\n- `\u003cnomdef_path\u003e` es la ruta al fichero `pobs.txt` (preparado a partir del Nomenclator).\n- `\u003coutput_path\u003e` es la ruta donde se guardará el fichero `zipcodes.csv` resultante.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fcodigospostales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Fcodigospostales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fcodigospostales/lists"}