If it is ships and AIS i guess you are working in WGS84 geographics coordinates (in projected like UTM you can just use plain trigonometri for approximate calculations).For geographicals you will find a lot of useful formulaes here: http://www.movable-type.co.uk/scripts/latlong.html The formulaes operate with a spherical earth, but I guess that should be ok for approximate calculations