0

I don't have any problem on building or running my app. I stored on Parse a geopoint and I am comparing with another one created in-running.

I am assigning them the same value (I already tried to assign a different location, by changing a digit on latitude and longitude also)

Distance between them is 0 meters or 1 meter.

This doesn't work:

query.whereKey("Coordinate", nearGeoPoint: currentLocation, withinKilometers: 15.0)

This works:

query.whereKey("Coordinate", nearGeoPoint: currentLocation)

And this doesn't work:

query.whereKey("Coordinate", nearGeoPoint: currentLocation, withinKilometers: 155555555.0)

This makes no sense for me.

nhgrif
  • 61,578
  • 25
  • 134
  • 173
  • What does `currentLocation` actually look like? What does "doesn't work" mean? How do the actual results compare to the expected results? – nhgrif Nov 11 '15 at 23:50
  • When I say "doesn't work", it means it doesn't returns that location 1 meter far from currentLocation. It only returns when I don't use withinKilometers – João Correia Nov 12 '15 at 00:12
  • currentLocation is a PFGeoPoint and when I print it: "" – João Correia Nov 12 '15 at 00:17

0 Answers0