{"id":27702409,"url":"https://github.com/arandilopez/ngcodigopostal","last_synced_at":"2026-05-03T05:43:02.618Z","repository":{"id":58232713,"uuid":"45590383","full_name":"arandilopez/ngCodigoPostal","owner":"arandilopez","description":"Servicio de angular para obtener informacion sobre: colonias, municipio y estado de un codigo postal. Sólo aplica para la República Mexicana","archived":false,"fork":false,"pushed_at":"2015-11-06T02:34:43.000Z","size":128,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T00:25:09.533Z","etag":null,"topics":["angular","mexico","zipcodes"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/arandilopez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-05T05:40:47.000Z","updated_at":"2025-03-18T22:23:19.000Z","dependencies_parsed_at":"2022-08-30T22:30:24.653Z","dependency_job_id":null,"html_url":"https://github.com/arandilopez/ngCodigoPostal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arandilopez%2FngCodigoPostal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arandilopez%2FngCodigoPostal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arandilopez%2FngCodigoPostal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arandilopez%2FngCodigoPostal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arandilopez","download_url":"https://codeload.github.com/arandilopez/ngCodigoPostal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250894893,"owners_count":21504151,"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":["angular","mexico","zipcodes"],"created_at":"2025-04-25T20:54:09.892Z","updated_at":"2026-05-03T05:43:01.518Z","avatar_url":"https://github.com/arandilopez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngCodigoPostal\n\nServicio de angular para obtener informacion sobre: colonias, municipio y estado de un codigo postal. **Sólo aplica para la República Mexicana**\n\n## Instalación\n\n**Bower**\n```\nbower install --save ngcodigopostal\n```\n\n**Instalación**\n```\n\u003cscript src=\"/path/to/codigopostal.js\"\u003e\u003c/script\u003e\n```\n\n## Uso\n\n1. Añadir la dependencia al nuestra aplicación\n\n```javascript\n\nvar app = angular.module('app', ['ngCodigoPostal']);\n\n```\n\n2. Usar el Servicio de codigoPostal en nuestro controlador\n\n```javascript\napp.controller(['$scope', 'codigoPostal', function ($scope, codigoPostal) {\n\n  codigoPostal.get('97000').then(function (response) {\n    $scope.colonias = response.asentamientos;\n    $scope.estado = response.estados[0];\n    $scope.municipio = response.municipios[0];\n  });\n\n}]);\n```\n\u003e Asentamientos son colonias.\n\n## ¿Cómo funciona?\nSimplemente hace una peticion con el dato del codigo postal a un servicio web publico soportado por (#ThanksTo) [789.mx](http://789.mx) en http://sepomex.789.mx\n\n### Respuesta de ejemplo:\n\n```json\n{\n  \"cp\": \"97000\",\n  \"asentamientos\": [\n    \"La Quinta\",\n    \"Los Cocos\",\n    \"Privada Garcia Gineres C - 29\",\n    \"Jardines de San Sebastian\",\n    \"Privada Del Maestro\",\n    \"Merida Centro\"\n  ],\n  \"estados\": [\n    \"Yucatán\"\n  ],\n  \"municipios\": [\n    \"Mérida\"\n  ]\n}\n```\n\n### Docs\n\n#### Service: codigoPostal\n| Function | Params | Returns |\n| :------------- | :------------- | :-------- |\n| get | String: codigo_postal | Promise |\n## Licencia\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farandilopez%2Fngcodigopostal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farandilopez%2Fngcodigopostal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farandilopez%2Fngcodigopostal/lists"}