refactor flipNumber to flipLongitude and flipLatitude. Also create some unites for the functions.