Switch to puma, sheesh so fast.
Use to_f instead of integer conversion, lat / lng can be floats.