Home > @magiclane/maps-sdk > Route > equals

Route.equals() method

Checks whether this route is equal to another route.

Compares this route's internal representation with another Route instance.

Signature:

equals(route: Route): boolean;

Parameters

Parameter

Type

Description

route

Route

The Route object to compare against

Returns:

boolean

True if the two routes are equal, otherwise false