dwyl / learn-postgresql

🐘 Learn how to use PostgreSQL and Structured Query Language (SQL) to store and query your relational data. 🔍
212 stars 23 forks source link

PostGIS (Geo-Spacial Data in Postgres) #16

Open nelsonic opened 7 years ago

nelsonic commented 7 years ago

We need to write a mini-example of using Geo Data in Postgres ideally calculating the distance between two pairs of coordinates.

jackcarlisle commented 7 years ago

@nelsonic I'll take a look into this 👍

jackcarlisle commented 7 years ago

@nelsonic I've written instructions on how to use PostGIS within the Postgres command prompt to return the distance between two sets of coordinates --> https://github.com/dwyl/learn-postgresql/pull/17

Is this what you had in mind for the example mentioned above?

jackcarlisle commented 7 years ago

Estimated at 4 hours but only took 1. The estimation was 4 hours because I hadn't used PostGIS before but it turned out that it was easily installed and the documentation was very accessible.

nelsonic commented 7 years ago

@jackcarlisle #result ! 😉