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

Route.toOTRoute() method

Convert this Route to an OTRoute if it is an over-track route.

Signature:

toOTRoute(): OTRoute | null;

Returns:

OTRoute | null

OTRoute object if the route is an OT route, null otherwise.