Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

Node.js library

To get you started quickly your personal access token is included in these examples. However you should use an application access token instead, which you can get from the applications page.

Log in to get your personal access token

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Geoloqi has built an official Node.js client library for developers, which makes integration with Node.js projects easy.

Start by installing the module via NPM:

$ npm install geoloqi

Basic Usage

You can retrieve an application access token from your applications page, and use it to run the following example code:

var geoloqi = require('geoloqi');
var session = new geoloqi.Session({'access_token':'YOUR APPLICATION ACCESS TOKEN'});'/trigger/create', {
  "place_name": "Powell's Books",
  "key":        "powells_books",
  "type":       "message",
  "text":       "Welcome to Powell's Books!",
  "latitude":   45.523334,
  "longitude":  122.681612,
  "radius":     150,
  "trigger_on": "enter"
}, function(result, err) {
  if(err) {
    throw new Error('There has been an error! '+err);
  } else {