Geo Fence to power on and of wireless network

Hi!

Anyone know where to start if i want to use geofence to turn of wifi antenna on a mikrotik ap?
I want to install a Metal 2 on a mast on our ship, to connect to wifi in harbours.

But when the ship leave this harbour, i want to automaticly turn of the APs wifi card. To make sure its not interference with anything.

Is there a way to connect a GPS to a mikrotik device, or am i in need of a raspberry pi to do this job?