Open binarysmith1719 opened 2 years ago
mapboxNavigation.requestRoutes( RouteOptions.builder() .applyDefaultNavigationOptions() .applyLanguageAndVoiceUnitOptions(this) .coordinatesList(listOf(originPoint,destinationPoint)) .profile(DirectionsCriteria.PROFILE_WALKING) .alternatives(false) .bearingsList( listOf( Bearing.builder() .angle(originLocation.bearing.toDouble()) .degrees(45.0) .build(), null ) ) .build(), routerCallback )