             return not @has 'value'
         isSet: ->
             return not @isEmpty()
+
+    class GeoModel
+        getLatLng: ->
+            if @latLng?
+                @latLng
+            coords = @get('location')?.coordinates
+            if coords?
+                @latLng = L.GeoJSON.coordsToLatLng coords
+            @latLng
+
+        getDistanceToLastPosition: ->
+            position = p13n.getLastPosition()
+            if position?
+                position.getLatLng().distanceTo @getLatLng()
 
     class SMModel extends Backbone.Model
         # FIXME/THINKME: Should we take care of translation only in

    'underscore',
    'backbone',
    'i18next',
    'app/settings',
    'app/spinner',
    'app/alphabet',

                when 'alphabetic_reverse'
                    alphabet.makeComparator -1
                when 'distance'
                    (x) => x.getDistanceToLastPosition()
                when 'default'
                    (x) => -x.get 'score'
                else
