Reputation: 2025
I have
What I want :
I want to know
What I already tried :
Upvotes: 0
Views: 979
Reputation: 21743
you can use my Lib class and behavior to geocode the two things: http://www.dereuromark.de/2012/06/12/geocoding-with-cakephp/
then you got coordinates for both of them and you can use this information to get your results.
so
PS: you will most likely get geocoding results that will already tell you which state the suburb is located in. so you might want to extract this information along the way. this will be more accurate then trying to use distances, especially in smaller states the distance can get you a wrong result.
Upvotes: 1