Android: Constructing a triangle based on Geographical information

Posted by Aidan on Stack Overflow See other posts from Stack Overflow or by Aidan
Published on 2010-06-06T19:25:18Z Indexed on 2010/06/07 20:12 UTC
Read the original article Hit count: 236

Hi Guys,

I'm constructing a geolocation based application and I'm trying to figure out a way to make my application realise when a user is facing the direction of the given location (a particular long / lat co-ord). I've got the math figured, I just have the triangle to construct.

Here's a further clarification of what I want to do..

I just want to know is there a way to get java to construct 2 other co-ordinates based on my orientation in relation to true north and my current co-ordinate? I'd like to construct a tri-angle, 45 degrees out each way of my current location (one of the points) and 1 kilometer in that direction. The problem is I don't know how to make Android/Java recognise that I want to find that point in the direction I'm currently facing..

Anyone got any ideas?

© Stack Overflow or respective owner

Related posts about android

Related posts about math