How to find if lat / long falls into an area using Django and geophysics
I am trying to create a Django app that will take an entered address and return a list of political races that a person will vote for. I have maps of all areas (PDF). And I know I can use geophysics to convert the entered address to coordinates. How do I define the districts of voters in Django so that I can run a query to find out which districts these coordinates come in?
a source to share
This is a non-trivial problem, too large in scope to answer this question in detail. In short, you will need to use GeoDjango (the contributor part). There is a section on importing spatial data .
Once you've loaded your data, you can use spatial search to find which area intersects a particular coordinate.
As for where to get voter district data, you can start with the www.data.gov geodata directory .
a source to share