function getLayerRoutePathString(isArray, lrp) {
  if (isArray) {
    return (lrp ).map(r => r.toString()).join(',');
  }
  return lrp && lrp.toString();
}
remove duplicate segment contain in layerPath against reconstructedRoute,
and return only unique segment that can be added into reconstructedRoute