Skip to content

//sdk-realtime/me.oriient.ipssdk.api.models/IPSRoute/getIndexOnRoute

getIndexOnRoute

[androidJvm]\ abstract fun getIndexOnRoute(@NonNullwaypoint: IPSWaypoint): Int

Since

2.8.0

Return

the index of this waypoint out of the coordinates on the route or -1 if it isn't on the route.

Parameters

androidJvm

waypoint the waypoint to check.

[androidJvm]\ abstract fun getIndexOnRoute(@NonNullwaypointId: String): Int

Since

3.0.0

Return

the index of this waypoint out of the coordinates on the route or -1 if it isn't on the route.

Parameters

androidJvm

waypointId the ID of the waypoint to check.