Click here to Skip to main content
16,017,650 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello i want to calculte long2 lat2 using a long1 lat1 distance and the angle

longitude latitude (43.619117 1.3719584)
distance 4 km
angle 323
Posted
Comments
jeron1 10-Nov-15 12:02pm    
What have you tried? Have you googled this? Have you seen "http://www.movable-type.co.uk/scripts/latlong.html" ?
KarstenK 10-Nov-15 14:24pm    
it is simple math with sinus and cosinus. Consider that you really are in trouble by not understanding such tasks. Ask some mate or teacher and learn your stuff or you wont make your exams. :-(
Patrice T 10-Nov-15 16:04pm    
I fear it is a little bit more complicated.
It is simple math with sinus and cosinus on a sphere and it must involve a great circle computation.
RedDk 10-Nov-15 14:46pm    
prapps:

https://en.wikipedia.org/w/index.php?title=Versine&redirect=no

'fer starters ...

1 solution

A simple Google research on longitude + latitude + bearing + distance leads you to
http://www.movable-type.co.uk/scripts/latlong.html[^]
http://stackoverflow.com/questions/7222382/get-lat-long-given-current-point-distance-and-bearing[^]
http://stackoverflow.com/questions/2187657/calculate-second-point-knowing-the-starting-point-and-distance[^]
And those are only the 3 first answers.

https://en.wikipedia.org/wiki/Great-circle_distance[^]

As always, the shortest path between 2 positions on a sphere is trough an arc of the great circle.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900