{"action":"closed","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1160","repository_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1160/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1160/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1160/events","html_url":"https://github.com/mapbox/mapbox-navigation-android/issues/1160","id":345147538,"node_id":"MDU6SXNzdWUzNDUxNDc1Mzg=","number":1160,"title":"Mapbox navigation launcher add waypoints names","user":{"login":"praveenposwal","id":6092876,"node_id":"MDQ6VXNlcjYwOTI4NzY=","avatar_url":"https://avatars1.githubusercontent.com/u/6092876?v=4","gravatar_id":"","url":"https://api.github.com/users/praveenposwal","html_url":"https://github.com/praveenposwal","followers_url":"https://api.github.com/users/praveenposwal/followers","following_url":"https://api.github.com/users/praveenposwal/following{/other_user}","gists_url":"https://api.github.com/users/praveenposwal/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenposwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenposwal/subscriptions","organizations_url":"https://api.github.com/users/praveenposwal/orgs","repos_url":"https://api.github.com/users/praveenposwal/repos","events_url":"https://api.github.com/users/praveenposwal/events{/privacy}","received_events_url":"https://api.github.com/users/praveenposwal/received_events","type":"User","site_admin":false},"labels":[{"id":578137002,"node_id":"MDU6TGFiZWw1NzgxMzcwMDI=","url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels/bug","name":"bug","color":"F44336","default":true},{"id":712481030,"node_id":"MDU6TGFiZWw3MTI0ODEwMzA=","url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels/navigation-ui","name":"navigation-ui","color":"3F51B5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/milestones/26","html_url":"https://github.com/mapbox/mapbox-navigation-android/milestone/26","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/milestones/26/labels","id":3621988,"node_id":"MDk6TWlsZXN0b25lMzYyMTk4OA==","number":26,"title":"0.19.0","description":"","creator":{"login":"danesfeder","id":8434572,"node_id":"MDQ6VXNlcjg0MzQ1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/8434572?v=4","gravatar_id":"","url":"https://api.github.com/users/danesfeder","html_url":"https://github.com/danesfeder","followers_url":"https://api.github.com/users/danesfeder/followers","following_url":"https://api.github.com/users/danesfeder/following{/other_user}","gists_url":"https://api.github.com/users/danesfeder/gists{/gist_id}","starred_url":"https://api.github.com/users/danesfeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danesfeder/subscriptions","organizations_url":"https://api.github.com/users/danesfeder/orgs","repos_url":"https://api.github.com/users/danesfeder/repos","events_url":"https://api.github.com/users/danesfeder/events{/privacy}","received_events_url":"https://api.github.com/users/danesfeder/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":4,"state":"open","created_at":"2018-09-04T19:00:57Z","updated_at":"2018-09-07T18:26:02Z","due_on":"2018-09-18T07:00:00Z","closed_at":null},"comments":2,"created_at":"2018-07-27T09:02:01Z","updated_at":"2018-09-07T18:26:02Z","closed_at":"2018-09-07T18:26:02Z","author_association":"NONE","body":"We are creating a navigation by using mapbox navigation launcher, it is working fine untill we have added the waypoints names. After adding waypoints name application started to crash randomly (some time at 1st waypoint, some time at another). Every time erorr is same \"Number of waypoint names must match  the number of waypoints provided \"\r\n\r\nHere is our code : \r\n\r\n         List<TourDetailResponse.TourDetailsPoi> pois = tourDetailResponse.getPois();\r\n\r\n        Point origin = Point.fromLngLat(currentLongitude, currentLatitude);\r\n\r\n        Point destination = Point.fromLngLat(pois.get(pois.size()-1).getLongitude(), pois.get(pois.size()-1).getLatitude());\r\n\r\n        NavigationRoute.Builder  builder = NavigationRoute.builder(coreActivity)\r\n                .accessToken(Mapbox.getAccessToken())\r\n                .origin(origin)\r\n                .destination(destination)\r\n\r\n\r\n        .profile(DirectionsCriteria.PROFILE_WALKING);\r\n\r\n\r\n        StringBuilder sb = new StringBuilder();\r\n\r\n\r\n        sb.append(\"origin##\");\r\n\r\n            for(int q=0;q<pois.size()-1;q++)\r\n        {\r\n            Point point = Point.fromLngLat(pois.get(q).getLongitude(), pois.get(q).getLatitude());\r\n\r\n            builder.addWaypoint(point);\r\n            sb.append(pois.get(q).getName()+\"##\");\r\n        }\r\n\r\n        builder.language(Locale.getDefault());\r\n\r\n        sb.append(pois.get(pois.size()-1).getName()+\"##\");\r\n\r\n        sb.setLength(sb.length()-2);\r\n\r\n        try\r\n        {\r\n           builder.addWaypointNames(sb.toString().split(\"##\"));\r\n        }catch (Exception e)\r\n        {\r\n            e.printStackTrace();\r\n        }\r\n\r\n\r\nIn Debug mode we have checked that Number of waypoint names are same as the number of waypoints \r\n\r\n\r\nStack trace : Fatal Exception: com.mapbox.core.exceptions.ServicesException: Number of waypoint names must match  the number of waypoints provided.\r\n       at com.mapbox.api.directions.v5.MapboxDirections$Builder.build(MapboxDirections.java:757)\r\n       at com.mapbox.services.android.navigation.v5.navigation.NavigationRoute$Builder.build(NavigationRoute.java:558)\r\n       at com.mapbox.services.android.navigation.v5.route.RouteFetcher.executeRouteCall(RouteFetcher.java:120)\r\n       at com.mapbox.services.android.navigation.v5.route.RouteFetcher.findRouteFromRouteProgress(RouteFetcher.java:72)\r\n       at com.mapbox.services.android.navigation.ui.v5.route.ViewRouteFetcher.fetchRouteFromOffRouteEvent(ViewRouteFetcher.java:65)\r\n       at com.mapbox.services.android.navigation.ui.v5.NavigationViewModel.sendEventOffRoute(NavigationViewModel.java:410)\r\n       at com.mapbox.services.android.navigation.ui.v5.NavigationViewModel.access$600(NavigationViewModel.java:47)\r\n       at com.mapbox.services.android.navigation.ui.v5.NavigationViewModel$2.userOffRoute(NavigationViewModel.java:274)\r\n       at com.mapbox.services.android.navigation.v5.navigation.NavigationEventDispatcher.onUserOffRoute(NavigationEventDispatcher.java:150)\r\n       at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorThreadListener.onUserOffRoute(RouteProcessorThreadListener.java:57)\r\n       at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorHandlerCallback$1.run(RouteProcessorHandlerCallback.java:99)\r\n       at android.os.Handler.handleCallback(Handler.java:751)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:154)\r\n       at android.app.ActivityThread.main(ActivityThread.java:6123)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)"}}
{"actor":{"display_login":"danesfeder"}}