Java: Calculate distance between a large number of locations and performance

Posted by Ally on Stack Overflow See other posts from Stack Overflow or by Ally
Published on 2010-06-03T16:55:46Z Indexed on 2010/06/03 17:14 UTC
Read the original article Hit count: 215

I'm creating an application that will tell a user how far away a large number of points are from their current position.

Each point has a longitude and latitude.

I've read over this article http://www.movable-type.co.uk/scripts/latlong.html

and seen this post http://stackoverflow.com/questions/837872/calculate-distance-in-meters-when-you-know-longitude-and-latitude-in-java

There are a number of calculations (50-200) that need carried about.

If speed is more important than the accuracy of these calculations, which one is best?

© Stack Overflow or respective owner

Related posts about java

Related posts about Performance