find min max of lat and lon