How jaypatel1511/nmtc-mapper works
nmtc-mapper turns addresses or tract IDs into NMTC eligibility and distress results, with explicit indeterminate outcomes; it also reports Opportunity Zone 1.0 and OZ 2.0 statuses. The main path is mapper input, optional Census geocoding, tract lookup and result enrichment. Batch enrichment, offline sample data, and summary counts are additional documented capabilities. Source excerpts establish the mapper’s use of geocoding and eligibility logic; some dataset-loading and OZ 2.0 details are documented in the README but their internal call paths were not fully sampled.
Main entry points: mapper.py NMTC mapper · checker.py Tract eligibility check · loader.py Fund and OZ data · census.py Census geocoder
Components 13
Public API
- NMTC mapper
nmtcmapper/mapper.py - Batch enrichment
nmtcmapper/mapper.py - Summary counts
nmtcmapper/mapper.py
Data and rules
- Fund and OZ data
nmtcmapper/data/loader.py - Sample dataset
nmtcmapper/data/loader.py - Schema and thresholds
nmtcmapper/data/schema.py
Geocoding
- Census geocoder
nmtcmapper/geocoder/census.py
Eligibility results
- Tract eligibility check
nmtcmapper/eligibility/checker.py - Eligibility result
nmtcmapper/eligibility/checker.py
Other components
- Application caller
- Census Bureau API
- CDFI Fund data
- Treasury OZ 2.0 data
Connections 15
- Application caller → NMTC mapper: provides input
README.md - NMTC mapper → Census geocoder: geocodes address
nmtcmapper/mapper.py - Census geocoder → Census Bureau API: requests tract
README.md - NMTC mapper → Tract eligibility check: checks tract
nmtcmapper/mapper.py - Tract eligibility check → Schema and thresholds: uses definitions
nmtcmapper/eligibility/checker.py - NMTC mapper → Fund and OZ data: loads datasets
README.md - Fund and OZ data → CDFI Fund data: downloads eligibility
README.md - Fund and OZ data → Treasury OZ 2.0 data: loads OZ 2.0
README.md - NMTC mapper → Sample dataset: offers sample mode
README.md - NMTC mapper → Batch enrichment: enriches frame
README.md - Batch enrichment → Census geocoder: geocodes addresses
README.md - Batch enrichment → Tract eligibility check: checks tract rows
nmtcmapper/mapper.py - Tract eligibility check → Eligibility result: produces result
nmtcmapper/eligibility/checker.py - NMTC mapper → Summary counts: counts results
README.md - NMTC mapper → Application caller: returns results
README.md