Skip to content
jamsajones edited this page Jul 9, 2012 · 1 revision

You can call status to get all of the locations that the Hotlight API returns.

Hotlight = require 'hotlight'

hl = new Hotlight
hl.on "status", (locations)->
  (console.log location.hotLightOn for location in locations)
h1.status {zipcode: 98116}

The method also supports a callback if you like...

Hotlight = require 'hotlight'

hl = new Hotlight
h1.status {zipcode: 98116}, (locations)->
  (console.log location.hotLightOn for location in locations)
Clone this wiki locally