What I'm trying to achieve
I want to enter a US city/state or zip code value. Then enter a radius (ex: 30 - would stand for 30 miles). Then I enter a minimum population (ex: 100000 - would tell the program logic to only look for cities with populations greater than or equal to 100000). The program returns the names of cities within the radius that has populations greater than or equal to the minimum population.
I don't care about super-precise numbers. For example, if a major city barely touches the outside radius, it still counts so I want to include that city's entire population (even though it's only perhaps a small sliver of the actual population) in the output.
Is there an open-source Python software or solution out there that would allow me to achieve this? If yes, what do you recommend?
What I'm considering
- Google geolocation but don't know if it's possible to do what I'm trying to do
- Some Python radius software package I don't know about
- Utilizing a giant database lookup table or an API but don't know which route is best from a strategic standpoint?