toString
Returns the textual representation of the GeoBox, this is also formatting it in a way that makes it usable in queries, e.g.:
val box = GeoBox.create(bottomLeft = GeoPoint.create(0.0, 0.0), topRight = GeoPoint.create(10.0, 10.0))
val results = realm.query<Restaurant>("location GEOWITHIN $box").find()
Content copied to clipboard