//sdk-realtime/me.oriient.ipssdk.api.models/IPSRoute/getDistanceFromStart
getDistanceFromStart
[androidJvm]\ abstract fun getDistanceFromStart(@NonNullwaypoint: IPSWaypoint): Double
This method will return the distance in meter from the beginning of the route to the provided waypoint as calculated by walking along the route. -1 will be returned if the waypoint is not on the route.
Since
2.8.0
Return
the distance in meters from the starting point till the provided waypoint or -1 if the waypoint isn't on the route.
Parameters
androidJvm
| waypoint | the waypoint to which to calculate the distance. |
See also
| me.oriient.ipssdk.api.models.IPSRoute | isOnRoute. |
[androidJvm]\ abstract fun getDistanceFromStart(@NonNullwaypointId: String): Double
This method will return the distance in meter from the beginning of the route to the provided waypoint as calculated by walking along the route. -1 will be returned if the waypoint is not on the route.
Since
3.0.0
Return
the distance in meters from the starting point till the provided waypoint or -1 if the waypoint isn't on the route.
Parameters
androidJvm
| waypointId | the ID of the waypoint to which to calculate the distance. |
See also
| me.oriient.ipssdk.api.models.IPSRoute | isOnRoute. |
[androidJvm]\ abstract fun getDistanceFromStart(@NonNulltransition: IPSRouteFloorTransition): Double
This method will return the distance in meter from the beginning of the route to the provided transition as calculated by walking along the route. -1 will be returned if the transition is not on the route.
Since
2.11.0
Return
the distance in meters from the starting point till the provided transition or -1 if the transition isn't on the route.
Parameters
androidJvm
| transition | the transition to which to calculate the distance. |
See also
| IPSRoute |