data-services/geocoder/postal-codes/extension
2015-10-30 18:54:38 +01:00
..
expected Adding postal code files. Not complete 2015-10-26 19:29:45 +01:00
sql Adding postal code files. Not complete 2015-10-26 19:29:45 +01:00
.gitignore Adding postal code files. Not complete 2015-10-26 19:29:45 +01:00
cdb_geocoder_postalcode--0.0.1.sql Fixing global table 2015-10-30 18:54:38 +01:00
cdb_geocoder_postalcode.control Adding postal code files. Not complete 2015-10-26 19:29:45 +01:00
Makefile Adding postal code files. Not complete 2015-10-26 19:29:45 +01:00
README.md Adding postal code files. Not complete 2015-10-26 19:29:45 +01:00

CartoDB postal code geocoder extension

Postgres extension for the CartoDB postal code geocoder. It is meant to contain the functions and related objects needed to geocode by postal codes. It is not meant to contain the actual data used to geocode them.

Dependencies

This extension is thought to be used on top of CartoDB platform. Therefore a cartodb 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 extension

Installation into the db cluster

This requires root privileges

sudo make all install

Execute tests

PGUSER=postgres make installcheck

Install onto a 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_postalcode;

The extension creation in the user's db does not require special privileges. It can be even created from the sql api.