public static void drawPathOnMap(GoogleMap mMap, Route route, Resources resources) {
    try {
      mMap.clear();
    } catch (Exception e) {
      e.printStackTrace();
      Log.d("ERROR", "CAN NOT CLEAR THE MAP");
    }

    PolylineOptions options =
        new PolylineOptions()
            .width(8)
            .color(resources.getColor(R.color.colorPrimary))
            .geodesic(true);

    for (Point point : route.getRoute()) {
      options.add(point.getPosition());
      placeMarkerOnMapLatLng(
          mMap,
          point.getPosition(),
          point.getName(),
          point.isVisited(),
          point.isSystemDefined(),
          resources);
    }

    mMap.addPolyline(options);
  }