Increase robustness by casting latitude and longitude to_f in case strings are passed in.