move lat/lng functions to the model