开发者

Coordinates from angle and distance in iPhone

开发者 https://www.devze.com 2023-03-17 05:37 出处:网络
In my iPhone app, suppose I have the coordinates of the current location. I want to know the coordinates of a point 10km from here, and 30° North 开发者_开发知识库East for example. How do I calculate

In my iPhone app, suppose I have the coordinates of the current location. I want to know the coordinates of a point 10km from here, and 30° North 开发者_开发知识库East for example. How do I calculate it? Thanks.


After typing a bunch of formulae out, I realized there's a site that already has it down, so I'm just going to link that instead, Calculate distance and bearing between two Latitude/Longitude points. The section titled "Destination point given distance and bearing from start point" is what you want. Just convert the degrees to radians (your bearing) and you'll be all set

0

精彩评论

暂无评论...
验证码 换一张
取 消