I am using PostGIS to do some lat and lon distance calculations for me in an SQL query. It returns the distance between two lat and lon positions but the unit it returns is the distance in lat and lon as the crow flies:
"SELECT ST_Distance(ST_MakePoint(\"Users\".\"longitude\",\"Users\".\"latitude\"), ST_MakePoint($1,$2)) FROM \"Users\" WHERE \"Users\".\"username\"=$3"
Example input:
Lat & Lon 1 -> -0.186768 51.450584
Lat & Lon 2 -> -0.572662 51.245584
Gives: 0.436965878800621
So my question is how to turn that 0.436965878800621
into e.g. 1000m
I'm not sure if Calculate distance between 2 GPS coordinates would help me? Or whether this is starting at too early / late a point in the calculation.
Thanks