I am looking for a script (preferably python or php) that would let me:
1. Input a zip code
2. And it will find all "business A" there - like grocery, hospitals
3. And then take distance as a parameter
4. And for each result in step 2) find all business B within distance taken in step 3).
So looking for "Give me all hospitals in Atlanta and within 5 miles of each of those hospitals find me a grocery store"
e.g: Given a zip code, find me all dermatologists in there and then for each of those dermatologists, search any hospitals within 5 miles of that.