I am making a simple app to return snow conditions via an API that returns JSON. I cache this in a database. I am using HTML5 Geo to get the users location and so far that works, returning long/lat/city. What I have been trying to do now, is say if you're in Portland, ME. Show resorts around you, say within 40 miles or so.
What is the best way to do that? Some type of math for long/lat to find a radius? Then sort through JSON?
Return JSON to an object
Sort through object (client side or server?)
Return results within the users location