How can I get gps tagged pictures from a raspberry pie?

Hello

I am sure someone has done this before but my google/search foo is failing me.

All I need to do is send a trigger command accompanied with the gps figures from the pixhawk/apm2.6/apm mini (will be moving the raspberry pi between birds for testing but if hardware diffrences plays a big part I can keep it on one FC) to a raspberry pi with the csi camera. ( to clarify I do NOT want to have a separate gps unit in the RPi if I can help it.)

If I understand this all, I may need to do this as a python script? Or am I just missing something obvious?

The connection between the devices is also completely up in the air so whatever works best?

Thanks!