added exception code for get_lat_lng