var
  mapXYZ: string;
begin 
  mapXYZ := inttostr(GetZ-1)+'/'+inttostr(GetY)+'/'+inttostr(GetX);   
  ResultURL := RegExprReplaceMatchSubStr(GetURLBase, 'xyz', mapXYZ);
end.