data-services/geocoder/extension
Mario de Frutos 481dbdfe3e Some more changes in the Make file
- Dont destroy upgrade/downgrade files
- Only remove the current version file which could be regenerated
- Added PHONY tags
2018-03-26 13:24:34 +02:00
..
sql Removed folder-based versioning for extension files 2018-02-19 11:44:41 +01:00
test Removed folder-based versioning for extension files 2018-02-19 11:44:41 +01:00
.gitignore First version of viable Makefile 2015-11-03 11:15:19 +00:00
cdb_geocoder--0.0.1--0.0.2.sql 0.0.1 <-> 0.0.2 scripts 2018-02-20 10:52:52 +01:00
cdb_geocoder--0.0.2--0.0.1.sql 0.0.1 <-> 0.0.2 scripts 2018-02-20 10:52:52 +01:00
cdb_geocoder--0.0.2.sql Removed folder-based versioning for extension files 2018-02-19 11:44:41 +01:00
cdb_geocoder.control 0.0.2 version for PG10 compatibility 2018-02-19 11:19:36 +01:00
Makefile Some more changes in the Make file 2018-03-26 13:24:34 +02:00
README.md carto 2016-07-11 10:46:03 +02:00

CARTO geocoder extension

Postgres extension for the CARTO geocoder. It is meant to contain the functions and related objects needed to provide a geocoding service for administrative areas of level 0, administrative areas of level 1, postal codes, IP addresses and city names. It is not meant to contain the actual data used to geocode them.

Dependencies

This extension is thought to be used on top of CARTO platform. Therefore a CARTO user is required to install the extension onto it.

The following is a non-comprehensive list of dependencies:

  • Postgres 9.3+
  • Postgis extension
  • Schema triggers extension
  • cartodb-postgresql CARTO extension

Installation into the DB cluster

This step requires root privileges

sudo make all install

Execute the tests

PGUSER=postgres make installcheck

Build, install & test

One-liner:

sudo PGUSER=postgres make all install installcheck

Install onto a CARTO user's database

Remember that it is mandatory to install it into a CARTO user's database

psql -U development_cartodb_user_fe3b850a-01c0-48f9-8a26-a82f09e9b53f cartodb_dev_user_fe3b850a-01c0-48f9-8a26-a82f09e9b53f_db

and then:

CREATE EXTENSION cdb_geocoder;

The extension creation in the user's DB does not require special privileges. It can be even created from the SQL API.