1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/postgres/assumed-radius-of-the-earth.md
2016-05-25 21:29:30 -05:00

19 lines
338 B
Markdown

# Assumed Radius Of The Earth
Using the
[`earthdistance`](https://www.postgresql.org/docs/8.3/static/earthdistance.html)
module, we can get the assumed radius of the earth (in meters).
```sql
> create extension cube;
CREATE EXTENSION
> create extension earthdistance;
CREATE EXTENSION
> select earth();
earth
---------
6378168
```