Welcome to Tris's US Legislative District Matching Emporium

Have you ever had a (latitude, longitude) coordinate and needed to know what United States legislative districts represented the folks living at that coordinate? You may be entitled to financial compensation benefit from this API!

How to use

Best explained as an example, with curl:

$ curl -A "mycoolsoftware/1.1 your.contact.email@whatever.com" \
    "https://districts.socialism.gay/v1/match.json?lat=38.762&lon=-77.593"
{
    "ocdids": [
        "ocd-division/country:us/state:va",
        "ocd-division/country:us/state:va/cd:10",
        "ocd-division/country:us/state:va/sldl:22",
        "ocd-division/country:us/state:va/sldu:30"
    ],
    "perf": {
        "match_time_ms": 10.716
    }
}
        

Please note the following from this example:

Terms of use

Known limitations

Feedback

You can email district-matcher-help@tris.fyi for best-effort support, bug reports, data quality issues, and so on.

Acknowledgements