Runtime error value (29.639497) has wrong type (gnu.math.DFloNum) (expected:integer)

To calculate distances use the haversine formula…
There is also an extension available

Taifun