Jake
Jake

Reputation: 16837

android find latitude longitude of a point in particular direction from current location

I am developing an android app in which I want to find the latitude & longitude of a point at a certain distance and in a particular direction (north/south/east/west) from the current location.

Any ideas on how this is possible?

Thanks

Upvotes: 1

Views: 1911

Answers (1)

owen gerig
owen gerig

Reputation: 6172

once you have your long, lat values you could just add to them. however i cannot give you the formulas since my math isnt the best and as for math like this im not even going to try and figure out the equation. heres a few links though to get you started, remember its the math not the code thats gonna help ya

http://sgowtham.net/blog/2009/08/04/php-calculating-distance-between-two-locations-given-their-gps-coordinates/

http://www.sitepoint.com/forums/showthread.php?656315-Adding-Distance-To-GPS-Coordinates-To-Get-Bounding-Box

http://www.sitepoint.com/forums/showthread.php?482470-Find-the-closest-location-near-your-address

Upvotes: 2

Related Questions