added function to calculate latlon to meters