GeoCircle
This class represents a circle on the surface of the earth. It cannot be persisted - i.e you can't declare a Realm property that is of type GeoCircle. It can be only used as a query argument for a geospatial query like this:
val newYork = GeoPoint.create(latitude = 40.730610, longitude = -73.935242)
val searchArea = GeoCircle.create(center = newYork, radius = Distance.fromMiles(2.0))
val restaurants = realm.query<Restaurant>("location GEOWITHIN $0", searchArea).find()
Content copied to clipboard