How can I get US Congressional District code by latitude and longitude OR user address? I have already downloaded Congressional district shapefile from Census files.

  • 1
    Welcome to Geographic Information Systems! Welcome to GIS SE! We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour for more about how the site works
    – Ian Turton
    Jan 2, 2022 at 16:54

1 Answer 1

  1. Create points from your lat/lon values - see e.g. here how to do it.

  2. On the point layer, apply this expression: overlay_within('district', "code")[0] and replace district with the name of the polygon layer containing the districts and code with the attribute field containing the US Congressional District code.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.