Hi folks, I recently had a team ask how to do this so I knocked up some code to show the concept;
https://gist.github.com/davidhoness/b0e ... 5a9fed68c0
You use two-line element telemetry to calculate ISS position (refresh from http://www.celestrak.com/NORAD/elements/stations.txt) and then the haversine function to calculate geodesic distance to the target location that you want to photograph. The ground sampling distance of the V1 camera is 161 meters per pixel (assuming 400km ISS altitude) so 2592 x 161 = about 417 km. Then you just check if the calculated distance to target is less than half of 417 = 208 (distance from center of the image to the edge) and if so start taking pictures.
Remember that your code will run for 3 hours, which is two orbits - and it's possible that the ISS will not fly over a single target. So you should improve my code so that it can look for multiple targets for contingency.
Good luck folks!
Edit: Correction for image range.
