Calculate the distance between two points on earth using PostGIS.
Import spatial data into PostgreSQL and query the data with the help of PostGIS.
Install PostGIS in PostgreSQL.
Install the routing extension for PostgreSQL