ChrisF79
2 months ago
261
2
General

How would I create this query based on a method I have?

Posted 2 months ago by ChrisF79

I have a site I'm working on that will find music teachers near students. The student can look for teachers by choosing a distance from their address.

I have a method calculate() that will take two latitude/longitude coordinates and calcualte the distance between the two points. It works great.

How do I create a query that will find all of the teachers with lat/long within a distance from the student?

Thank you

Please sign in or create an account to participate in this conversation.