From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: ipkis76@gmail.com
Subject: Wrong distance shown in miles for extension earthdistance
Date: Mon, 22 Mar 2021 04:17:42 +0000
Message-ID: <161638666232.653.1286667599530703498@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/10/earthdistance.html
Description:
Hi,
I have installed
CREATE EXTENSION CUBE;
CREATE EXTENSION earthdistance;
Post which I ran the following query:
SELECT (POINT (19.974, 72.756)<@> POINT (19.195, 72.959)) AS DISTANCE;
The answer came back as 21.17534 miles whereas the actual distance (as crow
flies) is 55.42 miles which I have checked from 2-3 websites. (Google maps
gives a greater distance which is travel by road & this value has been
ignored).
I know both the places and the distance between both of them cannot be 22
miles. It has to be in excess of 50 miles atleast. What am I missing?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, ipkis76@gmail.com
Subject: Re: Wrong distance shown in miles for extension earthdistance
In-Reply-To: <161638666232.653.1286667599530703498@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox