Hi Danilo,
your problem is strictly related with aerial and maritime long range
navigation; as already reported by Jaak, computing distances on the
sphere/ellipsoid is a rather complex task, and requires resolving the
Vincenty formulae [1].
[1]
http://en.wikipedia.org/wiki/Vincenty%27s_formulaeSpatiaLite simply supports a single Vincenty operation, i.e. computing
distances on the ellipsoid (supporting this function is required by
the most recent Spatial SQL standards):
ST_Distance () for geographic lat/long coordinates.
I'm sorry, but there are no further SQL functions Vincenty-based
currently implemented in spatialite.
bye Sandro