Hello, I would like to understand the difference between google map and ST_Distance calculation.
case: distance between Milan and Bari with google maps is: 786 km with azimut 125 degrees
Milan geo coordinates (degrees) are latitude 45 27 50 and Longitude 9 11 31, converted to decimal is: (45.463889, 9.191944)
Bari geo coordinates (degrees) are latitude 41 6 41 and longitude 16 51 19, converted to decimal is: (41.111389 3 16.885278)
So I execute the select as follow:
SELECT ST_Distance(ST_GeographyFromText('POINT(45.463889 9.191944)'), ST_GeographyFromText('POINT(41.111389 16.885278)'));
with result: 976591.545506267 meters so: 976 kilometers.
Which other parameters do I need to configure? What's wrong with my select?
many thanks for any suggestion,
Vivian.