generate ship location method