/nomad_latte-etl

Search Google Places API and store in Firebase with spatial index, for geo distance queries.

Primary LanguageJavaScriptMIT LicenseMIT

Nomad_latte ETL

JavaScript

Installation

yarn install or npm install

Configurations

Set up (or use .env, see .env.example) for the following environment variables:

FIREBASE_API_KEY
FIREBASE_AUTH_DOMAIN
FIREBASE_DATABASE_URL
FIREBASE_PROJECT_ID
FIREBASE_STORAGE_BUCKET
FIREBASE_MESSAGING_SENDER_ID
MAP_API_KEY
MAP_HOST

Usage

Use -q to define search terms and -t for types (check Google Places API for type definitions). For example, search cafes around 忠孝東路:

node Index.js -q 忠孝東路 -t cafe