Calculate the distance between two GPS-Coordinates (ctd.)
And here’s the same thing as plpgsql function for Postgres: CREATE OR REPLACE FUNCTION lldistance( a point, b point) RETURNS FLOAT AS $$ DECLARE x FLOAT; dlat FLOAT; dlon FLOAT; BEGIN dlat = radians(a[0]-b[0]); dlon = radians(a[1]-b[1]); x := sin(dlat/2)^2 + … Continue reading Calculate the distance between two GPS-Coordinates (ctd.)
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed