                 div class: 'ui-btn-inner ui-li', ->
                     div class: 'ui-btn-text', ->
                         a class: 'ui-link-inherit', ->
-                            img class: 'ui-li-thumb', src: '${url}', alt: 'M.I.A.'
-                            h3 class: 'ui-li-heading', '${name}'
+                            img class: 'ui-li-thumb', src: '${obj.url}', alt: 'M.I.A.'
+                            h3 class: 'ui-li-heading', '${obj.name}'
+                            p class: 'ui-li-desc', '${dis.toFixed(2)} miles away'

# Use the current position to do a geospatial lookup of available cameras.
msg currentPosition: ->
    pos = [@position.coords.latitude, @position.coords.longitude]
    console.log {loc: $near: pos, $maxDistance: .1}
    app.CameraModel.find {loc: $near: pos, $maxDistance: .1}, (err, docs) =>
        if err
            send 'message', text: JSON.stringify err
        else
            send 'currentPosition', position: @position, cameras: docs

# Default view
view ->


# Can't figure out how else to use project-local module with Zappa.
def mongoose: require "#{process.cwd()}/node_modules/mongoose"

# Used for spherical calculations.  According to WolframAlpha.
def radiusOfEarthMiles: 3956.6
def feetInAMile: 5280

get '/': ->
    # Define the mongoose schema.
