Skip to main content

indian-pincode-geo

Geo companion for indian-pincode: post offices, coordinates, nearby search, and reverse lookup. Offline, no runtime network calls. Depends on indian-pincode (exact same version). Importing it also enables indian_pincode.lookup(...) etc.

Requires Python >=3.10. Install via the core extra: pip install "indian-pincode[geo]".

Usage

import indian_pincode_geo as geo

offices = geo.lookup("110001")
print(offices[0]["office_name"])              # New Delhi GPO
print(offices[0]["office_type"])              # HO
nearby = geo.find_nearby(28.6304, 77.2177, radius_km=2)
print(nearby[0]["office_name"])               # Connaught Place SO
  • Result keys are snake_case: pincode, office_name, office_type, delivery_status, district, state, state_source, latitude, longitude, geo_quality (and distance_km from find_nearby).
  • find_nearby(lat, lon, radius_km=5, limit=20, include_suspect=False) returns offices sorted by distance. reverse_lookup(lat, lon) returns the nearest pincode centroid {pincode, distance_km}. get_centroid(pin) returns {latitude, longitude}.

Data quality

India Post coordinates are approximate. The pipeline flags points that are far from their pincode's cluster as geo_quality == "suspect" — about 6.5% of offices — and find_nearby/reverse_lookup exclude them by default. Pass include_suspect=True to include them. About 8.4% of offices have no usable coordinates after cleaning. Full stats: data/REPORT.md.

License

  • Code: MIT.
  • Data: derived from India Post / data.gov.in under GODL-India (attribution required) — see DATA_LICENSE.md.

Metadata

Release files for indian-pincode-geo 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indian-pincode-geo 2.0.0
File Size Uploaded
indian_pincode_geo-2.0.0.tar.gz 4.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for indian-pincode-geo 2.0.0
File Interpreter ABI Platform
indian_pincode_geo-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 MB

Release files / indian_pincode_geo-2.0.0.tar.gz

Download URL indian_pincode_geo-2.0.0.tar.gz
Size 4.1 MB
Tags Source
SHA-256 checksum
How to use checksums
3de43893fbdf438cae9a43e83b0c01ad7022ada124d1d9e16bf4e74eb9908eb0
BLAKE2b-256 checksum
How to use checksums
87ccbf22cea8debfc95a63754749f1b339133e200dc3329bc481d570f6988040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / indian_pincode_geo-2.0.0-py3-none-any.whl

Download URL indian_pincode_geo-2.0.0-py3-none-any.whl
Size 4.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
68302abbe2ec8a8572d2297e0d5209885866546d785d8e95228deadc58da8d05
BLAKE2b-256 checksum
How to use checksums
1e30a10b940c5d214eec981df0e1c46bb27a6f1ff23a74a4b301659db2a16ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

2.1.0

2 release files

2.0.1

2 release files

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page