set if/else loop for return_lat_long
set if/else loop for return_lat_long