Via Lattanzio,23 Milano
+39 02 36592025
info@synaptica.info

The Haversine formula in Firebird SQL => Calculate distance between two WGS84 Points

The Haversine formula in Firebird SQL => Calculate distance between two WGS84 Points

haversine

Hi,
I think might be helpful, today for a customer i do the Haversine formulas for Firebird Sql as a stored procedure.

This formula allow you to calculate the distance in meter between two WGS84 datum points(degree points of Earth).

You can call the procedure like this:

The result wil be aprox 14Km, the distance from my office and my house aprox.

the parameters of the procedure are:

The procedure code is:

Lascia un commento