equals

open operator override fun equals(other: Any?): Boolean

Checks if two GeoLocation objects are equal. This method considers two GeoLocations equal if their latitude and longitude coordinates are identical, excluding the id field (which might be used for database purposes).

Return

true if the GeoLocations have the same latitude and longitude, false otherwise.

Parameters

other

The other GeoLocation object to compare with.