example code and test cases for geocode and img capt in loop