Writing GPS Coordinates to a file

I currently have several DJI S1000’s and and have a need to be able to capture real-time the GPS coordinates for some advanced mapping work. I presently have A-2 controllers and was thinking of switching to Pixhawk. Are you able to capture GPS data into a file in able to mark the spot of images?