Builds a local google datastore of postcode data from OS Open Names, or imports the data to google cloud datastore, and indexes location fields to the Search API.
Using default settings in docker-compose.yml
docker-compose run importer
docker build -t postcodesimporter .
docker run \
-e GCLOUD_PROJECT_ID=[project-id] \
-e GCLOUD_KEY=[key] \
-e SEARCH_API=[search-api-url] \
-e SEARCH_API_TOKEN=[token] \
postcodesimporter [optional-command]
npm run import
to perform datastore import only (SEARCH_API variables not required)
npm run index
to perform search indexing only (GCLOUD variables still required)