Format bridges and joins for the Bharat Address schema.
osm_to_register.py: map OSMaddr:*tags into the register schema.register_to_osm.py: export register features into OSM-style tags.join_lgd_pin.py: attach LGD identifiers and validate PIN ranges using a crosswalk CSV.
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python osm_to_register.py --help# OSM -> Bharat Address register
python osm_to_register.py input.geojson output.geojson --ulb 294690 --state Karnataka --city Bengaluru
# Register -> OSM-style tags
python register_to_osm.py input.geojson output.geojson
# Join LGD + PIN crosswalk
python join_lgd_pin.py input.geojson crosswalk.csv output.geojson- Use
osm_to_register.pywhen ingesting OSM-tagged data. - Use
register_to_osm.pywhen exporting back to OSM-style tags. - Use
join_lgd_pin.pyto validate LGD and PIN consistency.
*.py: conversion scripts.requirements.txt: Python dependencies.
- Data teams converting between OSM and Bharat Address.
- Integrators normalizing address datasets.
- Central guidelines: https://github.com/BharatAddress/.github/blob/main/AGENTS.md