title: Getting objects based on distance filter in Parse+Swift
body: <p>I'm fairly new to IOS development and I have little to no clue what this error means. The error shows up when I try to use Parse to get an object within a 1.0 km distance from the user. </p>
  
  <pre><code>PFGeoPoint.geoPointForCurrentLocationInBackground { (geoPoint: PFGeoPoint?, error: NSError?) -&gt; Void in
  
      var query = PFQuery(className: "VenueData")
      query.whereKey(key: "Name", nearGeoPoint: geoPoint, withinKilometers: 1.0)
  
      var object = query.findObjects()
      println(object)
      }
  </code></pre>
  
  <p>However, whenever i use the withinKilometers constraint this error below keeps popping up and I do not know why that happens. Any help would be greatly appreciated.    </p>
  
  <p>$nearSphere: only works on geopoints fields (Code: 102, Version: 1.7.4)</p>