     onPosition(position)
 
 socket = io.connect '/'
-socket.on 'new geo', (geoJson) ->
-  console.log "Got geo from car.", geoJson
-  addGeoms geoJson
+socket.on 'new geo', (geoJson) -> addGeoms geoJson
 
 tracking = no
 deviceName = localStorage.getItem 'device-name'

          lng1.toFixed(4) is lng2.toFixed(4))
onPosition = ->
_geolocation = (callback) ->
  if tracking
    navigator.geolocation.getCurrentPosition callback, (err) ->
      console.error "Error when retrieving location '#{err.message}'."
geolocation = (callback) ->
  if lastPosition? then callback lastPosition else _geolocation callback
cachePosition = ->

onPosition = (position) ->
  if loggedIn() and not comparePosition(lastSentPosition, position)
    {latitude:lat, longitude:lng} = position.coords
    geoJson =
      geometry:
        type: 'Point'
        coordinates: [lng, lat]
