added min,max extraction of lat/long