Navigine/Indoor-Navigation-Android-Mobile-SDK-2.0

<LocationPoint>.getLocationId() return 0

novseje opened this issue · 1 comments

Describe the bug
The application has code like this:

RouteManager.addRouteListener(new RouteListener() {
    @Override
    public void onPathsUpdated(ArrayList<RoutePath> routePaths){
      CurrentRoutePaths = routePaths;
      for (int j = 0; j < CurrentRoutePaths.size(); j++)
      {
        RoutePath CurrentRoutePath = CurrentRoutePaths.get(j);
        ArrayList<LocationPoint> routePoints = CurrentRoutePath.getPoints();
        for (int r = 0; r < routePoints.size(); r++)
        {
          Point lPoint = routePoints.get(r).getPoint();
          Log.d("NavigineApp", String.format(Locale.ENGLISH, "Location: %s, Sublocation: %s", routePoints.get(r).getLocationId(), routePoints.get(r).getSublocationId()));
        }
      }
    }
});

Current LocationId is set. But getLocationId() always function return "0".

Smartphone (please complete the following information):

  • Device: Moto Z2 Force
  • OS: Android 8.0.0

Additional context
This code is part of the React Native application.

fixed