tags:

views:

276

answers:

2

Hi, I am trying to develop some simple location logic in the server-side portion of a java servlet-based webapp.

There are really just two operations that I'm interested in:

  1. Given a start point (lat/long) s1, distance d, and search point (also lat/long) s2, determine if the s2 is within d distance from s1.

  2. Given two points (lat/long), determine the distance between them.

Does anyone have recommendations of a simple java API that supports these operations?

Thanks!

+2  A: 
The MYYN
A: 

Thank you, the Haversine formula looks potentially useful - I'll check it out. I had seen geotools, but I think it fails my "simple" test. I felt like I needed to be well versed in all that is GIS to even understand how to look for the functionality I was interested in.