{"id":25448080,"url":"https://github.com/vamsii777/digipin","last_synced_at":"2025-07-09T21:35:21.493Z","repository":{"id":277988651,"uuid":"933850209","full_name":"vamsii777/DIGIPIN","owner":"vamsii777","description":"A Swift library for handling India Post's DIGIPIN (Digital Postal Index Number)","archived":false,"fork":false,"pushed_at":"2025-07-01T19:39:20.000Z","size":146,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T20:31:45.782Z","etag":null,"topics":["digipin","library","swift"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/vamsii777/DIGIPIN/main/documentation/digipin","language":"Swift","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/vamsii777.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2025-02-16T20:32:17.000Z","updated_at":"2025-07-01T19:39:17.000Z","dependencies_parsed_at":"2025-05-16T07:09:00.673Z","dependency_job_id":null,"html_url":"https://github.com/vamsii777/DIGIPIN","commit_stats":null,"previous_names":["vamsii777/digipin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vamsii777/DIGIPIN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vamsii777%2FDIGIPIN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vamsii777%2FDIGIPIN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vamsii777%2FDIGIPIN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vamsii777%2FDIGIPIN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vamsii777","download_url":"https://codeload.github.com/vamsii777/DIGIPIN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vamsii777%2FDIGIPIN/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264503948,"owners_count":23618763,"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":["digipin","library","swift"],"created_at":"2025-02-17T19:18:45.497Z","updated_at":"2025-07-09T21:35:21.478Z","avatar_url":"https://github.com/vamsii777.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eDIGIPIN\u003c/h1\u003e\n    \u003ca href=\"https://swift.org\"\u003e\n        \u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvamsii777%2FDIGIPIN%2Fbadge%3Ftype%3Dswift-versions\" alt=\"Swift 5.8\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/vamsii777/DIGIPIN/actions/workflows/test.yml\"\u003e\n        \u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvamsii777%2FDIGIPIN%2Fbadge%3Ftype%3Dswift-versions\" alt=\"Swift 5.8\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\" style=\"margin-top: 2px;\"\u003e\n    \u003ca href=\"https://swiftpackageindex.com/vamsii777/DIGIPIN/documentation\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/read_the-docs-2ea44f?logo=readthedocs\u0026logoColor=white\" alt=\"Documentation\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/vamsii777/DIGIPIN/actions/workflows/tests.yml\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/vamsii777/DIGIPIN/tests.yml?event=push\u0026style=flat\u0026logo=github\u0026label=tests\" alt=\"Continuous Integration\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n🌍 📍 A Swift library for handling India Post's DIGIPIN (Digital Postal Index Number) system - encode any location in India into a simple 10-character code.\n\n## 🗺️ Geographic Encoding\n\nThe `DIGIPIN` framework provides tools to generate and decode DIGIPIN codes - India Post's revolutionary geographic encoding system. It enables precise location representation through a simple 10-character alphanumeric code, covering all of India's territory with high precision.\n\nAdd the `DIGIPIN` product to your target's dependencies:\n\n```swift\n.target(\n    name: \"YourTarget\",\n    dependencies: [\n        .product(name: \"DIGIPIN\", package: \"digipin\")\n    ]\n)\n```\n\n### Quick Example\n\n```swift\nimport DIGIPIN\n\n// Generate a DIGIPIN code\nlet digipin = DIGIPIN()\nlet coordinate = Coordinate(latitude: 28.622788, longitude: 77.213033) // Dak Bhawan (official example)\n\nlet code = try digipin.generateDIGIPIN(for: coordinate)\nprint(code) // \"39J-49L-L8T4\"\n\n// Convert back to coordinates\nlet location = try digipin.coordinate(from: \"39J-49L-L8T4\")\nprint(\"Lat: \\(location.latitude), Long: \\(location.longitude)\")\n```\n\nSee the framework's [documentation](https://swiftpackageindex.com/vamsii777/DIGIPIN/documentation) for detailed information and guides.\n\n## 📍 Geographic Coverage\n\nThe system covers India's entire territory:\n- Latitude: 2.5°N to 38.5°N\n- Longitude: 63.5°E to 99.5°E\n\nIncluding:\n- Mainland India\n- Andaman and Nicobar Islands\n- Lakshadweep Islands\n- Buffer zones\n\nFor technical details about the DIGIPIN system, see:\n- [Official DIGIPIN Technical Documentation](https://www.indiapost.gov.in/VAS/DOP_PDFFiles/DIGIPIN%20Technical%20document.pdf)\n\n## 🤝 Contributing\n\nWe appreciate your contributions to make DIGIPIN better! Please read our [Contributing Guidelines](CONTRIBUTING.md) before submitting a pull request.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- India Post for developing the DIGIPIN system\n- The Swift community\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvamsii777%2Fdigipin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvamsii777%2Fdigipin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvamsii777%2Fdigipin/lists"}