Markers and Bearings

Newbie here.
I'm attempting to write an app to assist with setting marker buoys for a yacht race.
I'm comfortable with latitude, longtitude, angles and bearings.
I want to be able to place a second marker on a map a particular distance and bearing away from the first marker.
I can see how to get a distance and bearing of one marker from another that already exists, but i cant see how to set it in the first place.
I've scratched my head for a while now and feel like i'm missing something obvious.
Thanks

The "method" you are after (which uses the haversine formula) is HERE

For background read through the entire topic :wink:

You want the destination point procedure, and supply this with your starting lat/lon, distance and bearing. Once you get your new position, you can set/create a marker for it.

[EDIT] An easier method (though less accurate) would be to work with a live map, tapping at a point on the map to create a new marker, then you could drag the marker to a preferred position. You will want to run a formula or two in the background to return distance/bearings/lat/lon.

1 Like

Wow. really - that certainly isnt something obvious.
so the app cant just put a marker 1000mts and 45 degrees away from an existing marker?
thats going to take a bit of studying !

Yep, of course: with a chart, a protractor, a rule and a pencil it is quite straightforward :wink:

The procedure block is draggable, so you do not have to re-create it. Click on the image of the block until as big as it can get, then drag it into your open aia project.

1 Like

This was also partly an oversight in the design of the components. I think in my original vision for the various map components I was expecting people would be ingesting content from other systems (GIS). I did provide the methods for computing differences between features but not additive methods. We could probably add some "move" methods to the various components to abstract away the calculation.

3 Likes

This discussion may help too

1 Like