Moving of annotations (calculating of new position)

You must Login before you can answer or comment on any questions.

Hi,

I have a collection of annotations. Every annotation has position (lat/lon), a speed and a direction of movement. I'am looking for a formula to calculate the new position.

Hints?

Rainer

— asked 9 months ago by Rainer Schleevoigt
1 Comment
  • Sorry for spam: here is the formula

    var lat2 = Math.asin( Math.sin(lat1)*Math.cos(d/R) + 
                  Math.cos(lat1)*Math.sin(d/R)*Math.cos(brng) );
    var lon2 = lon1 + Math.atan2(Math.sin(brng)*Math.sin(d/R)*Math.cos(lat1), 
                         Math.cos(d/R)-Math.sin(lat1)*Math.sin(lat2));

    — commented 9 months ago by Rainer Schleevoigt

Your Answer

Think you can help? Login to answer this question!