equals

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

Indicates whether some other object is "equal to" this one.

The NavigationRoute equality check only takes into consideration the equality of the exact routes tracked by NavigationRoute instances which are being compared.

This means comparing only NavigationRoute.directionsRoute and other response metadata, without comparing all other routes found in the DirectionsResponse.routes.